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 cefe198 commit b57b613Copy full SHA for b57b613
src/main.ts
@@ -140,3 +140,13 @@ generators.forEach((generator) => {
140
checkingIfGeneratorExists(attributeValue);
141
});
142
143
+
144
+// closing modal when user clicks outside
145
+document.addEventListener("click", function (event) {
146
+ if (event.target === null) return;
147
+ const element = <HTMLElement>event.target;
148
+ if (element.matches(".modal-container")) {
149
+ closeModalFunction();
150
+ }
151
+});
152
0 commit comments