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

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

View File

@ -21,7 +21,7 @@ const props = withDefaults(
{
position: "popper",
disablePortal: false,
disableOutsidePointerEvents: false,
disableOutsidePointerEvents: true,
},
);
const emits = defineEmits<SelectContentEmits>();

View File

@ -2,9 +2,9 @@ import { readFileSync } from "node:fs";
import assert from "node:assert/strict";
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");
assert.match(source, /disableOutsidePointerEvents\?: boolean/);
assert.match(source, /disableOutsidePointerEvents:\s*false/);
assert.match(source, /disableOutsidePointerEvents:\s*true/);
});