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
The disabled and readonly prop is not working correctly in 2.8.0 version of chakra-ui
When the disabled or readonly prop is used to change the behavior of the whole form, only the inputs are being disabled, the interface buttons remain enabled, allowing moving, adding or removing items from the form
What is probably causing this bug is that react-jsonschema-form uses disabled prop to disable buttons but chakra-ui is always overriding the disabled prop as mentioned in this issue chakra-ui/chakra-ui#7269
Expected Behavior
When using the props disabled={true} or readonly={true} directly on the Form component, it should disable the whole form, including the interface buttons
Prerequisites
What theme are you using?
chakra-ui
Version
5.12.1
Current Behavior
The
disabled
andreadonly
prop is not working correctly in 2.8.0 version of chakra-uiWhen the
disabled
orreadonly
prop is used to change the behavior of the whole form, only the inputs are being disabled, the interface buttons remain enabled, allowing moving, adding or removing items from the formWhat is probably causing this bug is that react-jsonschema-form uses
disabled
prop to disable buttons but chakra-ui is always overriding thedisabled
prop as mentioned in this issue chakra-ui/chakra-ui#7269Expected Behavior
When using the props
disabled={true}
orreadonly={true}
directly on the Form component, it should disable the whole form, including the interface buttonsSteps To Reproduce
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: