-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add Clear button to RangeWidget #485
Conversation
const resetSlider = () => { | ||
const newValues = [min, max]; | ||
setInputsValues(newValues); | ||
setSliderValues([...newValues]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need here destructuring?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not but it's used in other pieces of the component. I assumed that @padawannn found some problem and needed to use destructuring here:
setSliderValues([...newValues]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but let's wait for the other PR to land before
6165e35
to
8d55289
Compare
Pull Request Test Coverage Report for Build 3249564739
💛 - Coveralls |
CHANGELOG.md
Outdated
@@ -4,6 +4,8 @@ | |||
|
|||
- Update Storybook to v6.5.12 [#487](https://github.com/CartoDB/carto-react/pull/487) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra line here, please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Add clear button to reset RangeWidget filters.
Screen.Recording.2022-10-07.at.10.52.03.mov
Type of change