Once is reset for ajax dialog buttons when dialog is opened

Created on 26 October 2023, 11 months ago
Updated 27 October 2023, 11 months ago

Problem/Motivation

Drupal.AjaxCommands.openDialog copies buttons from the dialog contents to the jQuery UI dialog buttons pane. If the original buttons had any event listeners attached, they may get re-attached after the button was copied. This is not needed because the new button is proxying its events to the original button.

Proposed resolution

Copy data-once attribute to the copied button to avoid attaching event listeners twice.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

11.0 🔥

Component
Ajax 

Last updated about 22 hours ago

Created by

🇫🇮Finland lauriii Finland

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

Comments & Activities

Production build 0.71.5 2024