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
On the render of the Controller pass the "field" object as a spread
Add a "disabled" prop on the input before the field spread
See how disabled is passed as undefined to the component
See on the console how the field object has a "disabled" property with the value undefined
Expected behaviour
For backwards compatibility on the same major version, the field object should not have the disabled property when it is undefined. This way the code that passes a disabled prop directly to the controlled component won´t be affected by this change.
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Version Number
7.46.1
Codesandbox/Expo snack
https://codesandbox.io/s/nervous-leakey-vdz6hp
Steps to reproduce
undefined
Expected behaviour
For backwards compatibility on the same major version, the field object should not have the disabled property when it is undefined. This way the code that passes a disabled prop directly to the controlled component won´t be affected by this change.
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: