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

[Vue] Use lazy & onChange for DynamicRangeSlider #2254

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

Jade-GG
Copy link
Contributor

@Jade-GG Jade-GG commented Oct 17, 2023

Currently, the Vue DynamicRangeSlider will not update the search query if you click on the rail or if you use the keyboard controls.

By listening to the change event from the VueSlider and setting it to lazy, we get the same behavior as the listening drag-end event except clicking on the rail actually works properly.

I will add that it might be worth disabling the keyboard controls entirely with useKeyboard={false}. The keyboard controls will cause many requests if you, for example, hold a direction, and the lazy property does not fix that. Plus the keyboard controls are kinda bad anyway 😅

Copy link
Member

@mohdashraf010897 mohdashraf010897 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻

@mohdashraf010897 mohdashraf010897 merged commit 138f7b7 into appbaseio:next Nov 21, 2023
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants