From 4b52766eb6edfd461c862d8ef4ce45c960690765 Mon Sep 17 00:00:00 2001 From: ShuGang Zhou Date: Sun, 20 Aug 2023 08:56:17 +0800 Subject: [PATCH] fix(FloatingBubble): does not update status while hidden (#12207) --- packages/vant/src/floating-bubble/FloatingBubble.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/vant/src/floating-bubble/FloatingBubble.tsx b/packages/vant/src/floating-bubble/FloatingBubble.tsx index 01b03d871..3d1a9a572 100644 --- a/packages/vant/src/floating-bubble/FloatingBubble.tsx +++ b/packages/vant/src/floating-bubble/FloatingBubble.tsx @@ -104,6 +104,9 @@ export default defineComponent({ }); const updateState = () => { + // onDeactivated with window size change will cause this + if (!show.value) return; + const { width, height } = useRect(rootRef.value!); const { offset } = props; state.value = {