diff --git a/assets/index.js b/assets/index.js index b1ba00b..6952b03 100644 --- a/assets/index.js +++ b/assets/index.js @@ -68,7 +68,7 @@ function configureSelectFix() { files.addEventListener('change', (e) => { document.querySelectorAll('.file').forEach((el) => el.style.display = 'none') window.scrollTo(0, 0) - setTimeout(() => document.getElementById(e.target.value).style.display = 'block', 1) + window.requestAnimationFrame(() => document.getElementById(e.target.value).style.display = 'block') }) files.dispatchEvent(new Event('change'))