Issue #3471977 by grimreaper: Drupal.dialog openDialog should use event settings

(cherry picked from commit d075b6c360)
merge-requests/9437/head
nod_ 2024-09-06 14:59:52 +02:00
parent db8a4ac51f
commit ff33b01fc4
No known key found for this signature in database
GPG Key ID: 76624892606FA197
1 changed files with 2 additions and 2 deletions

View File

@ -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),
);
}