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 &&
}