-
-
Notifications
You must be signed in to change notification settings - Fork 186
Closed
Milestone
Description
Describe the bug
The disabled structure field can be clicked and the form opens.
To Reproduce
Steps to reproduce the behavior:
- Go to panel
- Add structure field with disabled and filled to any page
- Edit the page and click structure table
- Row form is opening
Blueprint:
fields:
addresses:
label: Addresses
type: structure
disabled: true
fields:
street:
label: Street
type: text
zip:
label: ZIP
type: text
city:
label: City
type: text
Expected behavior
Rows can't be clicked, so the field data shouldn't be opened.
Kirby Version
3.2.5
Related PR #2069
Desktop
- Windows 10
- Chrome 77.0.3865.90
Additional context
I have few tests on related PR. Maybe this can give you an idea.
This issue is related to the child elements of the disabled field.
The same issue exists for translate: false option on disabled field when switch the language.
Btw when you try to save that opened form, the data does not save and no problem there.
Currently not working
k-field[data-disabled] *:not(.k-text[data-theme=help])
Structure field working (not clickable when disabled) but help links not working
k-field[data-disabled] *:not([data-theme=help])
I have no idea why it didn't work together.
