fix(ui): prevent stale pointer lock from menus and select

This commit is contained in:
t8y2 committed 2026-05-21 17:21:37 +08:00
1 parent b1519b9b60
commit 34ffb91861
5 files changed
+25 -4

No files matched your search

@@ -2,7 +2,9 @@
import type { DropdownMenuRootEmits, DropdownMenuRootProps } from "reka-ui";
import { DropdownMenuRoot, useForwardPropsEmits } from "reka-ui";
const props = defineProps<DropdownMenuRootProps>();
const props = withDefaults(defineProps<DropdownMenuRootProps>(), {
modal: false,
});
const emits = defineEmits<DropdownMenuRootEmits>();
const forwarded = useForwardPropsEmits(props, emits);