mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
feat(css): upgrade carbon-components
to v10.52.0 (#1078)
Fixes: - move `FileUploaderDropContainer` input outside of label to fix a11y error - prevent inadvertent text selection when clicking through flatpickr months
This commit is contained in:
parent
18eb1e2649
commit
5103e13321
5 changed files with 30 additions and 30 deletions
|
@ -93,24 +93,24 @@
|
|||
{labelText}
|
||||
</slot>
|
||||
</div>
|
||||
<input
|
||||
bind:this="{ref}"
|
||||
type="file"
|
||||
tabindex="-1"
|
||||
id="{id}"
|
||||
disabled="{disabled}"
|
||||
accept="{accept}"
|
||||
name="{name}"
|
||||
multiple="{multiple}"
|
||||
class:bx--file-input="{true}"
|
||||
on:change
|
||||
on:change="{({ target }) => {
|
||||
dispatch('add', validateFiles(target.files));
|
||||
}}"
|
||||
on:click
|
||||
on:click="{({ target }) => {
|
||||
target.value = null;
|
||||
}}"
|
||||
/>
|
||||
</label>
|
||||
<input
|
||||
bind:this="{ref}"
|
||||
type="file"
|
||||
tabindex="-1"
|
||||
id="{id}"
|
||||
disabled="{disabled}"
|
||||
accept="{accept}"
|
||||
name="{name}"
|
||||
multiple="{multiple}"
|
||||
class:bx--file-input="{true}"
|
||||
on:change
|
||||
on:change="{({ target }) => {
|
||||
dispatch('add', validateFiles(target.files));
|
||||
}}"
|
||||
on:click
|
||||
on:click="{({ target }) => {
|
||||
target.value = null;
|
||||
}}"
|
||||
/>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue