From 27aa524d44ee893344a55941a4c34164bb9134ff Mon Sep 17 00:00:00 2001 From: Huang Bingfeng <31788042+jackiotyu@users.noreply.github.com> Date: Fri, 10 May 2024 14:30:08 +0800 Subject: [PATCH] fix: transition component event --- src/Teleport.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Teleport.vue b/src/Teleport.vue index 6c91158..5f84719 100644 --- a/src/Teleport.vue +++ b/src/Teleport.vue @@ -32,6 +32,10 @@ export default { disabled(value) { if (value) { this.disable(); + // Ensure all event done. + this.$nextTick(() => { + this.teardownObserver(); + }); this.teardownObserver(); } else { this.bootObserver();