aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-02-08 22:12:35 -0800
committerPinapelz <yukais@pinapelz.com>2025-02-08 22:12:35 -0800
commit3a01335036b8df4d52d09a771ec8c844247a25d2 (patch)
tree64fd5ae4d9a340b69532d8c3938487afbf20fbc7
parentb98ed7f8eb773af1207aed2fac64c361a6e3e246 (diff)
fix: unable to scroll after exiting modal in editor
-rw-r--r--index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.js b/index.js
index a276759..5e9a19c 100644
--- a/index.js
+++ b/index.js
@@ -180,13 +180,13 @@ window.addEventListener('load', () => {
currentModalImage.dataset.description = modalDesc.value;
}
modal.style.display = 'none';
- document.body.style.overflow = 'hidden';
+ document.body.style.overflow = 'auto';
});
window.addEventListener('click', (evt) => {
if (evt.target == modal) {
modal.style.display = 'none';
- document.body.style.overflow = 'hidden';
+ document.body.style.overflow = 'auto';
}
});
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage