Issue #3471977 by grimreaper: Drupal.dialog openDialog should use event settings
(cherry picked from commit d075b6c360
)
merge-requests/9437/head
parent
db8a4ac51f
commit
ff33b01fc4
|
@ -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),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue