Gernott / mask

TYPO3 Extension Mask
https://www.facebook.com/typo3mask
GNU General Public License v2.0
130 stars 86 forks source link

Issues with "hidden" field on repititions and enabledControls "hide" enabled #518

Closed nitori closed 2 years ago

nitori commented 2 years ago

There seems to be a (related TYPO3 Core, a workaround is mentioned there as well) issue with the enabledControls "hide" on repetitions, if the hidden checkbox for the repetition table is configured with invertStateDisplay set to true.

Very simple mask element, just a repetition, with a single random field. No changes to any of the defaults. "hide" is set to true:

2022-09-23_152622

When using in backend and having the repetition opened up, using the top right hide toggle (1), switches the hidden input field (3) to he wrong value. The normal checkbox on the left (2) works as expected. Like said, only happens if invertStateDisplay is set to true for the hidden field of hat table.

image

This is obviously a TYPO3 bug, (as linked above), but it can probably be avoided in Mask by not using invertStateDisplay. Or at least not using it when "hide" enabledControls is set. Maybe doing it like sys_file_reference, by using a hidden palette with the hidden field could work, if the enabledControl is used.

At least until they fix the issue.

Greetings

nhovratov commented 2 years ago

Related: #514