Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Completely remove attributes to destroy tooltip properly

Maxim Voloshin2f92aa9645b9
diff --git a/modules/UI/util/UIUtil.js b/modules/UI/util/UIUtil.js
index 6cddc1d494..6cf1fc51a4 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','');
},
/**