From 4900b2be283194b95f765a680465da21bf52534f Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 29 Sep 2023 21:35:17 +0800 Subject: [PATCH] fix(Popover): failed to inherit scopedId (#12329) --- packages/vant/src/popover/Popover.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/vant/src/popover/Popover.tsx b/packages/vant/src/popover/Popover.tsx index 85e1bf117..7883e4304 100644 --- a/packages/vant/src/popover/Popover.tsx +++ b/packages/vant/src/popover/Popover.tsx @@ -31,6 +31,7 @@ import { // Composables import { useClickAway } from '@vant/use'; +import { useScopeId } from '../composables/use-scope-id'; import { useSyncPropRef } from '../composables/use-sync-prop-ref'; // Components @@ -265,6 +266,7 @@ export default defineComponent({ lockScroll={false} onUpdate:show={updateShow} {...attrs} + {...useScopeId()} {...pick(props, popupProps)} > {props.showArrow &&
}