[BUGFIX] Properly handle checkbox state changes in FormEngine
Using the multi record selection, it's possible to change the state of checkboxes via multiple ways, e.g. by clicking on the table row. The central functionality for changing the connected checkbox state now also considers the disabled attribute and therefore only changes the checked state in case the checkbox is not disabled. Additionally, next to the custom event, which is triggered on checkbox state changes, the multi record selection now also dispatches the standard "change" event. FormEngine validation for example is listening on this event to mark the field as changed. The JS component is also migrated to a proper custom element (web component). Resolves: #104142 Releases: main, 12.4 Change-Id: I9854709ee624d88821757fff3baf38c892e5f11d Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84749 Reviewed-by:Oliver Bartsch <bo@cedev.de> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Ayke Halder <mail@ayke-halder.de> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Ayke Halder <mail@ayke-halder.de>
Showing
- Build/Sources/TypeScript/backend/form-engine/element/select-check-box-element.ts 19 additions, 11 deletions...t/backend/form-engine/element/select-check-box-element.ts
- Build/Sources/TypeScript/backend/multi-record-selection.ts 5 additions, 2 deletionsBuild/Sources/TypeScript/backend/multi-record-selection.ts
- typo3/sysext/backend/Classes/Form/Element/SelectCheckBoxElement.php 3 additions, 3 deletions...xt/backend/Classes/Form/Element/SelectCheckBoxElement.php
- typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/select-check-box-element.js 1 addition, 1 deletion...avaScript/form-engine/element/select-check-box-element.js
- typo3/sysext/backend/Resources/Public/JavaScript/multi-record-selection.js 1 addition, 1 deletion...end/Resources/Public/JavaScript/multi-record-selection.js
Please register or sign in to comment