Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
🚸 Automatically focus new modal windows
Browse files Browse the repository at this point in the history
  • Loading branch information
GitSquared committed Apr 28, 2019
1 parent f9d083c commit 13169e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/classes/modal.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class Modal {
}
window.modals[this.id] = this;
document.body.appendChild(element);
this.focus();

// Allow dragging the modal around
let draggedModal = document.getElementById(`modal_${this.id}`);
Expand Down

0 comments on commit 13169e3

Please sign in to comment.