json-schema-form / angular-schema-form

Generate forms from a JSON schema, with AngularJS!
https://json-schema-form.github.io/angular-schema-form
MIT License
2.47k stars 653 forks source link

Readonly on the form doesn't apply to selector and array types. #947

Closed easonzhou closed 6 years ago

easonzhou commented 6 years ago

Enhancement

As a user/developer, when I apply readonly on the form, readonly doesn't apply to single/multiple selector UI elements.

Expected behaviour

I expected that the whole form are readonly.

Actual behaviour

Actually only the text input fields are readonly, but the selector or multiple selectors are still editable and has no "readonly" look and feel

Gist/Plunker/Demo

Description srererer

Related issues

This is/maybe related to ...

@json-schema-form/angular-schema-form-lead

Anthropic commented 6 years ago

How are you doing it, if you apply readonly within the schema or form on a select it should work? If not you could try putting the fields within a fieldset and making the fieldset readonly.

easonzhou commented 6 years ago

OK. Tried with putting them into fieldset and it works.