Dependency using body as target results in "An invalid form control with name='body[0][value]' is not focusable." with ckeditor enabled

Created on 29 July 2018, over 6 years ago
Updated 26 June 2024, 7 months ago

Steps to reproduce:

  • Create a node with a (not required) body and a boolean checkbox.
  • Add a dependency so that if the box is checked the body is required.
  • Submit with box check and an empty body.

What will happen is the form simply won't submit with no apparent error. Upon inspection of the console, you'd find this:
An invalid form control with name='body[0][value]' is not focusable.
The problem is that textarea has been hidden and replaced by the WYSIWYG. conditional_fields needs to be able to detect that and get the correct element. conditional_fields does supply a field for a custom jquery selector for the control field, but not the target, and even if it did, I wouldn't know what to pick.

πŸ› Bug report
Status

Closed: duplicate

Version

4.0

Component

Javascript

Created by

πŸ‡ΊπŸ‡ΈUnited States seanr

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024