fix(file-uploader): move input outside of label to fix a11y error

Ref: https://github.com/carbon-design-system/carbon/pull/10444
This commit is contained in:
Eric Liu 2022-02-10 06:30:15 -08:00
commit f627e1b6f3

View file

@ -93,6 +93,7 @@
{labelText}
</slot>
</div>
</label>
<input
bind:this="{ref}"
type="file"
@ -112,5 +113,4 @@
target.value = null;
}}"
/>
</label>
</div>