mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
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:
parent
aae2dd42aa
commit
ea31ec9693
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
$: if (ref && files.length === 0) {
|
$: if (ref && files.length === 0) {
|
||||||
labelText = initialLabelText;
|
labelText = initialLabelText;
|
||||||
ref.value = null;
|
ref.value = '';
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue