GenericInput: pass disabled to JSONInput #16030
Labels
issue: bug
Issue reporting a bug
severity: low
If the issue only affects a very niche base of users and an easily implemented workaround can solve
source: core:content-manager
Source is core/content-manager package
status: confirmed
Confirmed by a Strapi Team member or multiple community members
Bug report
Required System information
Describe the bug
The GenericInput component does not currently pass the disabled attribute to the JSONInput component, so for advanced use cases, it is not possible to achieve a readonly JSON field
Steps to reproduce the behavior
type="json"
anddisabled={true}
and other required propsExpected behavior
When a json type genericInput renders the component, the disabled attribute should be passed to the child JSONInput, so it's possible to achieve a readonly field
Screenshots
Code snippets
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: