final-form / react-final-form

🏁 High performance subscription-based form state management for React
https://final-form.org/react
MIT License
7.39k stars 482 forks source link

Q: should readonly fields be validated on blur? #1011

Open sKopheK opened 2 years ago

sKopheK commented 2 years ago

Are you submitting a bug report or a feature request?

*bug report**

What is the current behavior?

field has readonly atribute set so user cannot change its value but if the prefilled value is incorrect, validation triggered on e.g. blur event raises error

What is the expected behavior?

validation should not be triggered on readonly inputs for blur event

Sandbox Link

What's your environment?

RFF v6.59, FF 4.20.7

Other information