- Issue created by @tonibarbera
- Merge request !6066Issue #3413189: Error on core/misc/dialog/dialog.ajax.js β (Open) created by tonibarbera
- last update
12 months ago Custom Commands Failed - Status changed to Needs review
12 months ago 1:09pm 8 January 2024 - Status changed to Needs work
12 months ago 1:21pm 8 January 2024 There have been a number of AJAX-related bug reports in Drupal 10.2.0. Is there a way to reproduce this one with only core modules?
- πͺπΈSpain tonibarbera
I can't find a way to reproduce the error only with core modules, but the JS in that file has an error, present in Drupal 10.2.x and Drupal 11:
262 $(window).on('dialog:aftercreate', (e, dialog, $element, settings) => {
263 $element.on('click.dialog', '.dialog-cancel', (e) => {
264 dialog.close('cancel');
265 e.preventDefault();
266 e.stopPropagation();
267 });
268 });dialog is not passed to the function definition
- πͺπΈSpain tonibarbera
The MR was updated to solve a Javascript encoding typo.
Here the patch and the interdiff
- last update
12 months ago 29,722 pass - Status changed to Needs review
12 months ago 2:24pm 8 January 2024 - Status changed to Closed: works as designed
12 months ago 3:15pm 8 January 2024 - πͺπΈSpain tonibarbera
Closing this issue. Checked in a Drupal without any contrib module and is not reproducible and works fine.
- πͺπΈSpain tonibarbera
For more info: the error was related to the contrib module bootstrap4_modal. It adds the a JS library that is in conflict in our project with the Drupal 10.1.x Modal libraries.