You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a controlled select component, if the form shouldValidate is onInput, the value in the onChange event is not the one you tried to select, but the current value, meaning you cannot change the value in the select.
onBlur and onSubmitdo work, it only onInput that doesn't.
The only difference in conform I can see between onInput and onBlur is the type of event attached to the document here
Thanks for reporting the issue. This seems to be a problem only on chrome as I tested it on firefox and it works fine there. I will look into it further.
Describe the bug and the expected behavior
When creating a controlled select component, if the form
shouldValidate
isonInput
, the value in theonChange
event is not the one you tried to select, but the current value, meaning you cannot change the value in the select.onBlur
andonSubmit
do work, it onlyonInput
that doesn't.The only difference in conform I can see between
onInput
andonBlur
is the type of event attached to the document hereConform version
0.9.1
Steps to Reproduce the Bug or Issue
Working code sandbox with a very simple form demonstrating the issue.
What browsers are you seeing the problem on?
Chrome
Screenshots or Videos
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: