Drupal behaviors not running when element are shown

Created on 3 April 2023, about 2 years ago

Drupal behaviors are not being attached on elements that are shown.

A use case of this that I'm running into with the Chosen module :

  • The multiselect field (a list of states) is hidden by default
  • When I change the value of another field, the Conditional Fields module then shows this multiselect field
  • However, the chosen JavaScript is not run against the recently shown field.
🐛 Bug report
Status

Active

Version

4.0

Component

Javascript

Created by

🇺🇸United States mherchel Gainesville, FL, US

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