From 50986664e87af1eb5ad0c99364552627a460169a Mon Sep 17 00:00:00 2001 From: Rob Loranger Date: Wed, 28 Aug 2019 14:56:14 -0700 Subject: [PATCH] hide elements before they are displayed --- static/js/import.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/import.js b/static/js/import.js index 8019b63..0f293eb 100644 --- a/static/js/import.js +++ b/static/js/import.js @@ -6,7 +6,7 @@ const zipWarning = document.querySelector('span.zip > p.error'); const fileInput = document.querySelector('input[type="file"]') document.onreadystatechange = () => { - if ( document.readyState === "complete") { + if ( document.readyState === "interactive") { selectElem.disabled = true; submitElem.disabled = true; zipInfo.hidden = true;