Skip to content

Commit 9bbdffa

Browse files
committed
refactor(file-input): check for input before assigning value
1 parent d27b63a commit 9bbdffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/file-input/file-input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default class IgcFileInputComponent extends IgcInputBaseComponent {
7878
*/
7979
@property()
8080
public set value(value: string) {
81-
if (value === '') {
81+
if (value === '' && this.input) {
8282
this.input.value = value;
8383
}
8484
}

0 commit comments

Comments
 (0)