design-system
design-system copied to clipboard
Content-type builder - boolean values are clearable when isEditable is false
Bug report
Required System information
- Node.js version: Node v16
- NPM version: 8.4.0
- Strapi version: Strapi v4.2
- Database: postgres
- Operating system: Debian
Describe the bug
If you set the view for a model in the content-type builder to have isEditable: false on a boolean entry you can still clear the value
Steps to reproduce the behavior
- Go to a collection
- Click on configure the view
- Scroll down to boolean value
- set isEditable to false
- See error
Expected behavior
The component correctly prevents changes on the toggle but the clear button is still rendered despite the above configuration.
Screenshots
I've discussed the issue with @maevalienard and we will go for hiding the "Clear" action, if the field is disabled.