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

feat: slider onChangeAfter prop #247

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

vsandvold
Copy link
Contributor

This PR adds a new prop to the Slider component that triggers a callback after moving the slider has ended. The motivation behind this change is to perform state updates only after the user is done moving the slider, and not continuously while the slider is being dragged.

A use case for this behaviour is searching with an updated slider value. The search should only be performed for the final slider value, and not for every intermediate value.

@felicia-haggqvist felicia-haggqvist requested a review from a team June 11, 2024 12:13
@felicia-haggqvist felicia-haggqvist changed the title Slider onChangeAfter prop feat: slider onChangeAfter prop Jun 12, 2024
@imprashast imprashast merged commit fa1af5c into warp-ds:next Jun 12, 2024
4 of 6 checks passed
github-actions bot pushed a commit that referenced this pull request Jun 12, 2024
# [1.6.0-next.3](v1.6.0-next.2...v1.6.0-next.3) (2024-06-12)

### Features

* slider onChangeAfter prop ([#247](#247)) ([fa1af5c](fa1af5c))
github-actions bot pushed a commit that referenced this pull request Jul 3, 2024
# [1.6.0](v1.5.0...v1.6.0) (2024-07-03)

### Bug Fixes

* add default targetEl for callout ([#248](#248)) ([e297880](e297880))
* bump core to fix slider ([#250](#250)) ([5192147](5192147))
* **slider:** Prevent onChange/onChangeAfter called on mount ([#253](#253)) ([84ddd64](84ddd64))

### Features

* add warp ds eslint config ([#238](#238)) ([d83f799](d83f799))
* slider onChangeAfter prop ([#247](#247)) ([fa1af5c](fa1af5c))
* **toggle:** add ReactNode type to toggle labels ([#244](#244)) ([abeff99](abeff99))
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