From 2f92aa9645b95af152496fe52363983f74285997 Mon Sep 17 00:00:00 2001 From: Maxim Voloshin Date: Fri, 30 Sep 2016 14:06:57 +0300 Subject: [PATCH] Completely remove attributes to destroy tooltip properly --- modules/UI/util/UIUtil.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/UI/util/UIUtil.js b/modules/UI/util/UIUtil.js index 6cddc1d49..6cf1fc51a 100644 --- a/modules/UI/util/UIUtil.js +++ b/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',''); }, /**