Skip to content

Add short delay to filtering#266

Merged
jeremyzilar merged 2 commits intostagingfrom
BDMS-774
Apr 28, 2026
Merged

Add short delay to filtering#266
jeremyzilar merged 2 commits intostagingfrom
BDMS-774

Conversation

@jeremyzilar
Copy link
Copy Markdown
Contributor

The filtering field now pauses for 700ms before running the query. This allows people to type more than one character, and the filter field doesn't lose focus.

image

What changed

ListPage now sets filterDebounceMs to 350 ms when the DataGrid uses server filter mode, instead of leaving Refine’s 0 ms default for that case.

Why

With 0 ms debounce, the grid can refetch (and re-render) on every keystroke in a column filter. That often makes the filter field lose focus, so typing a full search string is frustrating. A short debounce batches updates so the field stays usable while still filtering on the server.

Only affects list pages that use this shared ListPage + server-side filtering. Client-side grids are unchanged (they keep whatever filterDebounceMs was passed in).

…p focus while typing

Refine sets filterDebounceMs to 0 for server mode; override to 350ms when filterMode is server so column toolbar filters do not lose focus on each keystroke.
@jeremyzilar jeremyzilar self-assigned this Apr 28, 2026
@jeremyzilar jeremyzilar added the bug Something isn't working label Apr 28, 2026
@github-actions
Copy link
Copy Markdown

Preview Deployment

Preview URL: https://preview-bdms-774-auejgdbofq-uc.a.run.app

Note: This preview uses the staging API endpoints.

@jeremyzilar jeremyzilar merged commit a0a604a into staging Apr 28, 2026
3 of 4 checks passed
@jeremyzilar jeremyzilar deleted the BDMS-774 branch April 28, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants