hide elements before they are displayed
This commit is contained in:
parent
02fb828934
commit
50986664e8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue