fix(grid): preserve structured filter conditions on refresh and rollback

The toolbar refresh, rollback, and post-save reload were passing only
the manual WHERE input to the reload event, discarding structured filter
conditions added via the filter builder popover. Changed all three call
sites to use currentWhereInput() which combines both filter sources.
This commit is contained in:
t8y2 committed 2026-06-05 15:15:23 +08:00
1 parent 6016b293ce
commit bbe51d409c
2 files changed
+5 -4

No files matched your search

@@ -1987,6 +1987,7 @@ const editor = useDataGridEditor({
sql: computed(() => props.sql),
searchText,
whereFilterInput,
currentWhereInput: computed(() => currentWhereInput()),
orderByInput,
rowStatusFilter,
initialEditColumn: firstVisibleColumnIndex,
@@ -2101,7 +2102,7 @@ async function onToolbarRefresh() {
"reload",
props.sql,
searchText.value,
whereFilterInput.value.trim() || undefined,
currentWhereInput(),
currentOrderBy(),
pageSize.value,
(currentPage.value - 1) * pageSize.value,
@@ -2119,7 +2120,7 @@ function onToolbarRollback() {
"reload",
props.sql,
searchText.value,
whereFilterInput.value.trim() || undefined,
currentWhereInput(),
currentOrderBy(),
pageSize.value,
(currentPage.value - 1) * pageSize.value,