Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input characters dropped when typing quickly in HxSearchBox #997

Open
lmmv92 opened this issue Jan 26, 2025 · 1 comment
Open

Input characters dropped when typing quickly in HxSearchBox #997

lmmv92 opened this issue Jan 26, 2025 · 1 comment

Comments

@lmmv92
Copy link

lmmv92 commented Jan 26, 2025

When typing rapidly in the HxSearchBox component in a Blazor Server app, some characters are dropped.
I tried increasing the debounce delay but while this delays the results, the problem of dropped characters still occurs.

@hakenr
Copy link
Member

hakenr commented Jan 27, 2025

It seems the keydown event might not be processed quickly enough in Blazor Server mode.
If confirmed, we should update the handleKeyDown JavaScript handler to dispatch only the relevant keys to Blazor (HxSearchBox_HandleInputKeyDown) - specifically, those that could trigger a meaningful outcome on the Blazor side. Regular keystrokes should be handled locally without calling Blazor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants