Skip to content
Snippets Groups Projects
Commit 82ac91d8 authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[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: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarAyke Halder <mail@ayke-halder.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarAyke Halder <mail@ayke-halder.de>
parent 85fbc88f
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment