Commit c09cfd40 authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[BUGFIX] Dispatch change event for updated input field

The RequestUpdate component, handling the
TCA "onChange" functionality, adds an event
listener to the main HTML field. In case of TCA
type "input", this field never dispatches such
event, because the user always changes the
"human readable" field in the GUI.

The main field is only updated manually by
FormEngine after validating the new value.
Therefore, the "onChange" property never
had any effect for TCA type "input" fields.

This is now fixed by dispatching a "change"
event for the main field after its value has
been updated.

Resolves: #93613
Releases: master, 11.5
Change-Id: I9facf3548619b3733975fb5c8f28622d03002e7b

Tested-by: core-ci's avatarcore-ci <>
Tested-by: Jochen's avatarJochen <>
Tested-by: Stefan Bürk's avatarStefan Bürk <>
Tested-by: Benni Mack's avatarBenni Mack <>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <>
Reviewed-by: Jochen's avatarJochen <>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <>
parent 37f059e1
Pipeline #19584 passed with stages
in 45 minutes and 40 seconds
......@@ -247,6 +247,9 @@ define([
// After updating the value of the main field, dispatch a "change" event to inform e.g. the "RequestUpdate"
// component, which always listens to the main field instead of the "human readable field", about it.
$mainField.get(0).dispatchEvent(new Event('change'));
Supports Markdown
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