-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readonly and arrays #2208
Labels
Comments
I tried it in the 3.2.0-alpha.3, and it works, thanks :) , is there any planned release date for 3.2? |
Hi @baerry, We don't have an announced date. However we plan to release still within 2023 if nothing unexpected comes up. |
Closing this issue now ;) |
Still an issue in |
Hi @leixuexxxx, Feel free to open a new issue for them. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When having a schema with an array as toplevel, and you give Jsonforms readonly, it renders all inputs on the array object readonly, which is expected, but the buttons for adding new row or removing row is still enabled, ive tried to search if its intentional, and if you can remove/disale them when the Jsonform is set to readonly without much success.
Expected behavior
Since the whole controller is set to readonly, i expect to not being able to add and remove rows from an array.
Steps to reproduce the issue
Create a schema with an array as toplevel, give it a few inputs, mock some rows with data, set the jsonforms controller to readonly, click on add / remove on a row,
Screenshots
clicking on add gives a new row, and since the properties are readonly on the new row, it feels like a bug? and adding a new row should be disabled?
In which browser are you experiencing the issue?
Google Chrome Version 119.0.6045.123 (Officiell version) (64 bit)
Which Version of JSON Forms are you using?
v3.1.0
Framework
React
RendererSet
Material
Additional context
No response
The text was updated successfully, but these errors were encountered: