From 941e00ebf9a67199fb895df5086333f98d85fab4 Mon Sep 17 00:00:00 2001 From: Adriana Trif Date: Fri, 9 Nov 2018 22:51:35 +0200 Subject: [PATCH 1/2] Reset invalid state --- etools-upload.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etools-upload.html b/etools-upload.html index 82abca6..270ca3b 100644 --- a/etools-upload.html +++ b/etools-upload.html @@ -393,6 +393,9 @@ } autoValidateHandler() { + if (typeof this.fileUrl === 'undefined') { + this.invalid = false; + } if (this.autoValidate) { this.validate(); } From 496318b262c779ba1dba78ac855f8edcfd23dbb0 Mon Sep 17 00:00:00 2001 From: Adriana Trif Date: Mon, 12 Nov 2018 12:28:42 +0200 Subject: [PATCH 2/2] Fix invalid state --- common-styles.html | 1 + etools-upload.html | 1 + 2 files changed, 2 insertions(+) diff --git a/common-styles.html b/common-styles.html index 5bc15ce..a6dfeff 100644 --- a/common-styles.html +++ b/common-styles.html @@ -43,6 +43,7 @@ .upload-button { color: var(--etools-upload-primary-color, var(--primary-color)); + margin-right: 8px; } :host([readonly]) .upload-button { diff --git a/etools-upload.html b/etools-upload.html index 270ca3b..91457e5 100644 --- a/etools-upload.html +++ b/etools-upload.html @@ -394,6 +394,7 @@ autoValidateHandler() { if (typeof this.fileUrl === 'undefined') { + this.resetStatus(); this.invalid = false; } if (this.autoValidate) {