diff --git a/packages/vant/src/popup/Popup.tsx b/packages/vant/src/popup/Popup.tsx index 2c37674ad..f5fecfa6e 100644 --- a/packages/vant/src/popup/Popup.tsx +++ b/packages/vant/src/popup/Popup.tsx @@ -172,7 +172,14 @@ export default defineComponent({ } }; - const onOpened = () => emit('opened'); + // see: https://github.com/youzan/vant/issues/11901 + let timer: ReturnType | null; + const onOpened = () => { + if (timer) clearTimeout(timer); + timer = setTimeout(() => { + emit('opened'); + }); + }; const onClosed = () => emit('closed'); const onKeydown = (event: KeyboardEvent) => emit('keydown', event);