Disable entire form elements with respect to a state. React Disable entire form elements with respect to a state. React reactjs reactjs

Disable entire form elements with respect to a state. React


I think this should solve your problem https://stackoverflow.com/a/17186342/3298693.

You should insert your form inside an element <fieldset disabled="disabled">. This will make the whole form disabled.


I had the same issue and this worked for me:

 <fieldset disabled={true}>

Where true would be some "prop.setting"...


Just use <input type="text" disabled> wherever you want the input text to be disabled. It hardly takes some time.