fix(select): enable outside pointer events lock by default

This commit is contained in:
t8y2 committed 2026-05-22 21:04:19 +08:00
1 parent c4a268f670
commit 6b00e193ba
2 files changed
+3 -3

No files matched your search

@@ -21,7 +21,7 @@ const props = withDefaults(
{ {
position: "popper", position: "popper",
disablePortal: false, disablePortal: false,
disableOutsidePointerEvents: false, disableOutsidePointerEvents: true,
}, },
); );
const emits = defineEmits<SelectContentEmits>(); const emits = defineEmits<SelectContentEmits>();
@@ -2,9 +2,9 @@ import { readFileSync } from "node:fs";
import assert from "node:assert/strict"; import assert from "node:assert/strict";
import test from "node:test"; import test from "node:test";
test("select content disables outside pointer-event lock by default", () => { test("select content preserves Reka outside pointer-event lock by default", () => {
const source = readFileSync("apps/desktop/src/components/ui/select/SelectContent.vue", "utf8"); const source = readFileSync("apps/desktop/src/components/ui/select/SelectContent.vue", "utf8");
assert.match(source, /disableOutsidePointerEvents\?: boolean/); assert.match(source, /disableOutsidePointerEvents\?: boolean/);
assert.match(source, /disableOutsidePointerEvents:\s*false/); assert.match(source, /disableOutsidePointerEvents:\s*true/);
}); });