#ajax config not reliably implemented for consecutively added components

Created on 24 April 2025, 22 days ago

Overview

IF

  • If a component has an instance form with #ajax properties
  • And multiple instances of that component are consecutively* added to a layout

The form array's #ajax does not reliably apply the expected Drupal AJAX functionality.

If XB is refreshed, each component instance form's #ajax appears to work fine

* I'm not 100% sure it needs to be consecutive, but so far that's been the reliable way to reproduce it.

Steps to reproduce

  • Add 3 image components to the layout, consecutively
  • Note that the "Add media" button will work for some, but not all components
  • The "Add media" buttons that work have the data-once="drupal-ajax" attribute
  • Re-processing the components that don't work with Drupal.attachBehaviors() does not result in them working, so it's not a matter of triggering the behaviors again.

Proposed resolution

User interface changes

🐛 Bug report
Status

Active

Version

0.0

Component

Redux-integrated field widgets

Created by

🇺🇸United States bnjmnm Ann Arbor, MI

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