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:
damencho 2016-09-29 16:47:32 -05:00
parent 032509be15
commit da65bbaa2d
1 changed files with 4 additions and 0 deletions

View File

@ -144,6 +144,10 @@ const TOOLTIP_POSITIONS = {
*/
removeTooltip: function (element) {
AJS.$(element).tooltip('destroy');
element.setAttribute('data-tooltip', '');
element.setAttribute('data-i18n','');
element.setAttribute('content','');
element.setAttribute('shortcut','');
},
/**