From f79055977b7fcd1b58a72f13ab868a3d0ef43987 Mon Sep 17 00:00:00 2001 From: zernonia Date: Sun, 28 Apr 2024 18:25:51 +0800 Subject: [PATCH] fix: set bodylock as default true --- packages/radix-vue/src/Select/SelectContentImpl.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/radix-vue/src/Select/SelectContentImpl.vue b/packages/radix-vue/src/Select/SelectContentImpl.vue index 7d8966928..931fefa2c 100644 --- a/packages/radix-vue/src/Select/SelectContentImpl.vue +++ b/packages/radix-vue/src/Select/SelectContentImpl.vue @@ -66,7 +66,11 @@ export interface SelectContentImplProps extends PopperContentProps { * `popper` - positions content in the same way as our other primitives, for example `Popover` or `DropdownMenu`. */ position?: 'item-aligned' | 'popper' - /** The document.body will be lock, and scrolling will be disabled. */ + /** + * The document.body will be lock, and scrolling will be disabled. + * + * @defaultValue true + */ bodyLock?: boolean } @@ -92,6 +96,7 @@ import { focusFirst } from '@/Menu/utils' const props = withDefaults(defineProps(), { align: 'start', position: 'item-aligned', + bodyLock: true, }) const emits = defineEmits()