Verified Commit 65a3907d authored by Théodore Biadala's avatar Théodore Biadala
Browse files

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

(cherry picked from commit d075b6c3)
parent 534009d3
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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),
      );
    }