@@ -52,7 +52,9 @@ export default class SubNavFoundation<P = Record<string, any>, S = Record<string
this._timer = null;
}
- destroy() {} // eslint-disable-line
+ destroy() {
+ this.clearDelayTimer();
+ }
clearDelayTimer() {
if (this._timer) {
@@ -115,6 +115,7 @@ export default class Tooltip<P = Record<string, any>, S = Record<string, any>> e
this._adapter.unregisterClickOutsideHandler();
this.unBindResizeEvent();
this.unBindScrollEvent();
+ clearTimeout(this._timer);
_bindTriggerEvent(triggerEventSet: Record<string, any>) {