value can only be set to the empty string

This fixes the following error I got.

> InvalidStateError: Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string
This commit is contained in:
Julián Perelli 2023-09-28 19:41:14 +02:00 committed by GitHub
commit ea31ec9693
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@
$: if (ref && files.length === 0) {
labelText = initialLabelText;
ref.value = null;
ref.value = '';
}
</script>