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 = {