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

Fix input/textarea debouncing logic #171

Open
wwwillchen opened this issue Apr 29, 2024 · 1 comment
Open

Fix input/textarea debouncing logic #171

wwwillchen opened this issue Apr 29, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@wwwillchen
Copy link
Collaborator

Right now if a user types in an input/textarea component and then quickly does another action (e.g. click a button), then there's a race condition where the button click action may happen before the input debounce completes which creates an unintuitive behavior.

Short-term fix: Adjust it down to 150ms (currently 300ms)

Long-term fix: Have some mechanism for queueing user events in the Channel so that the input is guaranteed to be before any other event (in the above example sequence).

@wwwillchen
Copy link
Collaborator Author

Removing from v0.5 milestone because the short-term fix is in and the long-term fix is a little bit unclear ATM.

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
1 participant