Merge pull request #963 from m-voloshin/destroy-tooltips

Completely remove attributes to destroy tooltip properly
pull/964/head 1323
Дамян Минков 9 years ago committed by GitHub
commit b3f0620f5b
  1. 8
      modules/UI/util/UIUtil.js

@ -143,11 +143,9 @@ const TOOLTIP_POSITIONS = {
* @param element the element to remove the tooltip from
*/
removeTooltip: function (element) {
AJS.$(element).tooltip('destroy');
element.setAttribute('data-tooltip', '');
element.setAttribute('data-i18n','');
element.setAttribute('content','');
element.setAttribute('shortcut','');
element.removeAttribute('data-tooltip', '');
element.removeAttribute('data-i18n','');
element.removeAttribute('content','');
},
/**

Loading…
Cancel
Save