feat(grid): preselect first WHERE field completion suggestion

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-09-03 11:49:18 +08:00
1 parent eec2e63667
commit 2c7a420ef6
3 files changed
+16 -2

No files matched your search

@@ -33,7 +33,6 @@ describe("useDataGridConditionEditor", () => {
value.value = "status = cust";
await nextTick();
await vi.waitFor(() => expect(editor.suggestions.value.map((item) => item.value)).toEqual(["customer_id", "customer_name"]));
expect(editor.navigate(1)).toBe(true);
expect(editor.highlightedIndex.value).toBe(0);
expect(editor.navigate(1)).toBe(true);
expect(editor.highlightedIndex.value).toBe(1);