mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(FloatingBubble): does not update status while hidden (#12207)
This commit is contained in:
parent
5dc2f4dcd2
commit
4b52766eb6
@ -104,6 +104,9 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const updateState = () => {
|
const updateState = () => {
|
||||||
|
// onDeactivated with window size change will cause this
|
||||||
|
if (!show.value) return;
|
||||||
|
|
||||||
const { width, height } = useRect(rootRef.value!);
|
const { width, height } = useRect(rootRef.value!);
|
||||||
const { offset } = props;
|
const { offset } = props;
|
||||||
state.value = {
|
state.value = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user