We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 161dfa8 commit 0438e8cCopy full SHA for 0438e8c
1 file changed
docs/js/modal.js
@@ -16,7 +16,7 @@ let visibleModal = null;
16
// Toggle modal
17
const toggleModal = event => {
18
event.preventDefault();
19
- const modal = document.getElementById(event.target.getAttribute('data-target'));
+ const modal = document.getElementById(event.currentTarget.getAttribute('data-target'));
20
(typeof(modal) != 'undefined' && modal != null)
21
&& isModalOpen(modal) ? closeModal(modal) : openModal(modal)
22
}
@@ -92,4 +92,4 @@ const getScrollbarWidth = () => {
92
// Is scrollbar visible
93
const isScrollbarVisible = () => {
94
return document.body.scrollHeight > screen.height;
95
-}
+}
0 commit comments