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

Created on 5 March 2024, 8 months ago
Updated 11 July 2024, 4 months 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

Needs review

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland piridium

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024