From da65bbaa2de6ab28a6b78818ef1929da88ddb462 Mon Sep 17 00:00:00 2001 From: damencho Date: Thu, 29 Sep 2016 16:47:32 -0500 Subject: [PATCH] Updates remove tooltip util method. Destroy is just hiding current tooltip, we also need to remove other attributes to stop showing the tooltip. --- modules/UI/util/UIUtil.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/UI/util/UIUtil.js b/modules/UI/util/UIUtil.js index d4f581909..6cddc1d49 100644 --- a/modules/UI/util/UIUtil.js +++ b/modules/UI/util/UIUtil.js @@ -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',''); }, /**