react-spectrum
react-spectrum copied to clipboard
Controlled input validation is not updated after an external change
Provide a general summary of the issue here
if an external action changes the value from an invalid controlled input, the validation message doesn't change
๐ค Expected Behavior?
validation should be updated in the same way as it's updated when I type in the input
๐ฏ Current Behavior
validation is not updated from external actions
๐ Possible Solution
No response
๐ฆ Context
No response
๐ฅ๏ธ Steps to Reproduce
https://codesandbox.io/p/sandbox/musing-sara-w75p44?file=%2Fsrc%2FApp.js%3A18%2C30
- submit empty form
- see validation message
- click 'set to XXX'
- message is still there, but form submission works
refresh the page
- submit empty form
- see validation form
- update the input manually (type 15)
- validation message is gone <-- this is the behaviour I want to replicate
Version
latest
What browsers are you seeing the problem on?
Microsoft Edge
If other, please specify.
No response
What operating system are you using?
mac
๐งข Your Company/Team
No response
๐ท Tracking Issue
No response