From f656ebdb1cd777a08963c795d0c9b206756d1d3d Mon Sep 17 00:00:00 2001 From: Nicolas Coden Date: Thu, 15 Mar 2018 09:07:47 +0100 Subject: [PATCH] fix: correctly clear tooltip classes on destroy Changes: * remove the `triggerClass` option instead of `.has-tip` * remove `.bottom` --- js/foundation.tooltip.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/foundation.tooltip.js b/js/foundation.tooltip.js index 523ee5868..8823dccfd 100644 --- a/js/foundation.tooltip.js +++ b/js/foundation.tooltip.js @@ -291,7 +291,8 @@ class Tooltip extends Positionable { _destroy() { this.$element.attr('title', this.template.text()) .off('.zf.trigger .zf.tooltip') - .removeClass('has-tip top right left') + .removeClass(this.options.triggerClass) + .removeClass('top right left bottom') .removeAttr('aria-describedby data-disable-hover data-resize data-toggle data-tooltip data-yeti-box'); this.template.remove(); -- 2.47.2