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
But the switch field doesn't propagate the disabled prop to the internal switch. I could make a custom field, of course. But it would be nice if all form-generator fields were disableable (is that a word?). It would also be great if the editable prop where used everywhere (instead of disabled for switches)
I'm going to check this.
The props passed to the parent component are propagated to the children so I guess it should work no matter what.
I'll include the change in the new version
I need my input forms to be read-only until I put them in edit mode.
So I need to manage editable and disabled props of the fields.
InputField is easy:
SwitchField is not easy. I'd like to do like this:
or even
But the switch field doesn't propagate the disabled prop to the internal switch. I could make a custom field, of course. But it would be nice if all form-generator fields were disableable (is that a word?). It would also be great if the editable prop where used everywhere (instead of disabled for switches)
How about one new line in SwitchComponent.js?
The text was updated successfully, but these errors were encountered: