#100471appearance.enableControls.hide not working for Inline Elements, when disabled field is rendered in form as checkboxToggle with "invertStateDisplay"
Description
When adding a field of type inline to a flexform field (i think this will affect regular tca fields as well) and using the appearance.enableControls.hide feature to add the little toggle-button to the title-bar of the inline element, the hide/show functionality will not work when using a “checkboxToggle” field with the “invertStateDisplay” Option.
In the frontend everything seems to be fine, when disabling the Element using the button in the title bar, the form element reacts and the inline element is visually disabled. After saving the record it es enabled again.