From ff33b01fc4e9e99a04a080d0ed040ce6fe15e7ab Mon Sep 17 00:00:00 2001 From: nod_ Date: Fri, 6 Sep 2024 14:59:52 +0200 Subject: [PATCH] Issue #3471977 by grimreaper: Drupal.dialog openDialog should use event settings (cherry picked from commit d075b6c3602ce5b47afe381e1fe7a4ab3e8d89b3) --- core/misc/dialog/dialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/misc/dialog/dialog.js b/core/misc/dialog/dialog.js index 8cac24c3c00..2a6430052e0 100644 --- a/core/misc/dialog/dialog.js +++ b/core/misc/dialog/dialog.js @@ -87,13 +87,13 @@ class DrupalDialogEvent extends Event { dialog.open = true; // Locks the body scroll only when it opens in modal. - if (settings.modal) { + if (event.settings.modal) { // Locks the body when the dialog opens. bodyScrollLock.lock(domElement); } domElement.dispatchEvent( - new DrupalDialogEvent('aftercreate', dialog, settings), + new DrupalDialogEvent('aftercreate', dialog, event.settings), ); }