hide elements before they are displayed

This commit is contained in:
Rob Loranger 2019-08-28 14:56:14 -07:00
parent 02fb828934
commit 50986664e8
No known key found for this signature in database
GPG key ID: D6F1633A4F0903B8

View file

@ -6,7 +6,7 @@ const zipWarning = document.querySelector('span.zip > p.error');
const fileInput = document.querySelector('input[type="file"]') const fileInput = document.querySelector('input[type="file"]')
document.onreadystatechange = () => { document.onreadystatechange = () => {
if ( document.readyState === "complete") { if ( document.readyState === "interactive") {
selectElem.disabled = true; selectElem.disabled = true;
submitElem.disabled = true; submitElem.disabled = true;
zipInfo.hidden = true; zipInfo.hidden = true;