-
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
[Bug]: Slider, onRelease and onBlur #12187
Comments
Can confirm I am also seeing this error in our storybook. |
It looks like #12207 should fix the error with onBlur |
@stanley-regnard Agreed, there are kind of two bugs here, what's going on with |
* fix(react): added condition check before calling onblur. closes #12187 * fix(slider): update conditional onBlur call * chore(slider): remove testing code * chore(slider): formatting Co-authored-by: Taylor Jones <taylor.jones826@gmail.com> Co-authored-by: TJ Egan <tw15egan@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Package
@carbon/react
Browser
Chrome
Package version
1.13.0
React version
18.2.0
Description
When typing in the TextInput attached to a Slider, each character typed will trigger the onRelease function.
Exiting the same TextInput will result in a error logged in the browser console:
Reproduction/example
https://stackblitz.com/edit/github-h8unbj?file=src%2FApp.jsx
Steps to reproduce
If you use the Slider, onChange and onRelease values should update as expected.
While typing in the TextInput, you would notice that both onChange and onRelease values will be edited live.
Exiting the TextInput should trigger an error in the console.
Code of Conduct
The text was updated successfully, but these errors were encountered: