Updates remove tooltip util method.
Destroy is just hiding current tooltip, we also need to remove other attributes to stop showing the tooltip.
This commit is contained in:
parent
032509be15
commit
da65bbaa2d
|
@ -144,6 +144,10 @@ const TOOLTIP_POSITIONS = {
|
||||||
*/
|
*/
|
||||||
removeTooltip: function (element) {
|
removeTooltip: function (element) {
|
||||||
AJS.$(element).tooltip('destroy');
|
AJS.$(element).tooltip('destroy');
|
||||||
|
element.setAttribute('data-tooltip', '');
|
||||||
|
element.setAttribute('data-i18n','');
|
||||||
|
element.setAttribute('content','');
|
||||||
|
element.setAttribute('shortcut','');
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue