From e898c946b3496a5c614b3ee1af33198594568252 Mon Sep 17 00:00:00 2001 From: wch360119203 Date: Fri, 26 Jul 2024 15:39:26 +0800 Subject: [PATCH] fix(drawer):Fix the destroy function does not correctly mark _status as 'DESTROY' --- packages/drawer/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/drawer/src/index.ts b/packages/drawer/src/index.ts index efb4023..6816814 100644 --- a/packages/drawer/src/index.ts +++ b/packages/drawer/src/index.ts @@ -362,8 +362,8 @@ export default class Drawer { } destroy(): void { - this._status = 'DESTROY'; this.reset(); + this._status = 'DESTROY'; this.mouseTooltip.destroy(); this._subscriber.destroy(); }