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

[8.x] [Controls] Debounce time slider selections (#201885) #204979

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

## Summary

This PR fixes the [[Controls] Debounce time slider
selections](elastic#193227) issue.

Previously when the user was dragging the time slider, the dashboard
would be updating constantly causing lagging on more complex dashboards.
This PR adds a local state that will hold the updating values while the
user is dragging, and updates the dashboards once the user stops
dragging with a delay of 300.

https://github.com/user-attachments/assets/45bca92e-f92a-4c1f-8417-a0a0818c7415

---------

Co-authored-by: Hannah Mudge <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit 87d15ba)
@kibanamachine kibanamachine merged commit 3d7cbb4 into elastic:8.x Dec 19, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants