Skip to content

Commit

Permalink
fix(floating-bubble): update offset when the value changed (#12730)
Browse files Browse the repository at this point in the history
  • Loading branch information
chouchouji authored Mar 25, 2024
1 parent f578ac2 commit 8b56a4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vant/src/floating-bubble/FloatingBubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export default defineComponent({
watch(
[windowWidth, windowHeight, () => props.gap, () => props.offset],
updateState,
{ deep: true },
);

const show = ref(true);
Expand Down

0 comments on commit 8b56a4d

Please sign in to comment.