diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-02-08 22:12:35 -0800 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-02-08 22:12:35 -0800 |
| commit | 3a01335036b8df4d52d09a771ec8c844247a25d2 (patch) | |
| tree | 64fd5ae4d9a340b69532d8c3938487afbf20fbc7 | |
| parent | b98ed7f8eb773af1207aed2fac64c361a6e3e246 (diff) | |
fix: unable to scroll after exiting modal in editor
| -rw-r--r-- | index.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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'; } }); |
