Skip to content

Commit 51567ab

Browse files
authored
Merge pull request #12 from nitin-1926/master
On clicking outside modal not closing bug fix
2 parents e19af41 + 584da03 commit 51567ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hire.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,11 +534,11 @@ <h2>Social</h2>
534534
}
535535

536536
// When the user clicks anywhere outside of the modal, close it
537-
window.onclick = function (event) {
537+
window.addEventListener("click", function(event) {
538538
if (event.target == modal) {
539539
modal.style.display = "none";
540540
}
541-
}
541+
});
542542

543543
// For Mobile
544544

0 commit comments

Comments
 (0)