Fix event handling for subelements (e.g. checkboxes for boolean fields)

Created on 5 March 2024, 4 months ago
Updated 23 May 2024, about 1 month ago

Problem/Motivation

When trying to enable editablefields for a boolean (input type="checkbox"), the javascript event 'change' does not work.

Steps to reproduce

  • Add a boolean field.
  • Set it's display mode in the view to 'editable field'.
  • Visit to the view. No 'submit' is displayed.
  • Changing the checkbox does not trigger an ajax call.
  • Inspect the source and you won't find a onchange attribute for this field.

Proposed resolution

Upon inspection of the code, I figured out, that nested subelements do not get adressed properly.
The attached patch should fix this bug.

Remaining tasks

Review and test the supplied patch.

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland piridium

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024