Select inside form does not update state on first change
benmcginnis opened this issue · 2 comments
benmcginnis commented
Description
When using a 'select'
field type inside a form with a<SubmitButton disableIfUntouched disableIfInvalid>{'Update'}</SubmitButton>
, changing the select doesn't change the form state the first time you do it. You have to change the select again before the submit button is enabled.
Link to Reproduction
Steps to reproduce
- Change the Select to another value
- See that the submit button is still disabled
- change the select value again
- see that the submit button is now enabled
Saas UI Version
2.5.8
Chakra UI Version
2.8.2
Browser
Google Chrome 125
Operating System
- macOS
- Windows
- Linux
Additional Information
No response
Pagebakers commented
Weird, onChange is triggered, but it seems like the field stays untouched.
The touched state isn't updated in your example, but i can't reproduce it in the storybooks.