-
Notifications
You must be signed in to change notification settings - Fork 336
Open
Description
Looks like BaseFormField was designed to support "locking"/"disabling" an input field:
| locked: bool = False |
However, this is not working for me even after extending the json_schema_field_to_field() method to also pass an extra locked=schema.get('locked', False) param to the FormFieldInput in:
FastUI/src/python-fastui/fastui/json_schema.py
Lines 182 to 189 in cec25c6
| return FormFieldInput( | |
| name=name, | |
| title=title, | |
| html_type=input_html_type(schema), | |
| required=required, | |
| initial=schema.get('default'), | |
| description=schema.get('description'), | |
| ) |
I'm not sure, but I think the problem may lie somewhere in the npm package around the below lines?
FastUI/src/npm-fastui/src/components/FormField.tsx
Lines 37 to 38 in cec25c6
| required={required} | |
| disabled={locked} |
Anyone knows how to fix? Thanks in advance!
Metadata
Metadata
Assignees
Labels
No labels