-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(Slider): TextInput should no longer trigger onRelease #12254
Conversation
✅ Deploy Preview for carbon-components-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for carbon-components-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
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.
onRelease
is no longer triggered while typing inside the TextInput 👍
Closes #12187
The flag
needsOnRelease
is currently set totrue
on two occasions, whenonDragStop
is called (when the slider handle is released), and whenonChange
is called (when typing in the TextInput). Which then triggersonRelease
to be called.Changelog
Removed
This PR no longer set the this flag to
true
duringonChange
.Testing / Reviewing
Make sure
onRelease
is no longer triggered while typing inside the TextInput