react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

Controlled input validation is not updated after an external change

Open luisrudge opened this issue 4 months ago โ€ข 7 comments

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

luisrudge avatar Jul 31 '25 17:07 luisrudge