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
@dwjohnston Good point. The fix for this is fairly simple (updating the SubmitButtonProps in @rjsf/utils to add disabled and then passing it in from the Form.tsx in @rjsf/core). Are you able to fix it yourself for us?
Prerequisites
What theme are you using?
core
Version
4.2.3
Current Behavior
When I pass the
disabled
props, all inputs are disabled, but the form can still be submitted by pressing the submit button, which is still enabled.Expected Behavior
The submit button should be disabled.
Steps To Reproduce
https://codesandbox.io/s/lucid-dawn-k56bdt?file=/src/App.js (4.2.3)
Environment
Anything else?
Similar issues:
#854 - suggestion - pass in empty div as children to remove the submit buttton
Another option is to pass the
uiSchema
prop in with theui:submitButtonOptions.props.disabled
when you are trying to disable the form.P.S Fantastic work with this library. This thing is great.
The text was updated successfully, but these errors were encountered: