mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(file-uploader): update clearFiles
accessor description (#1122)
The `clearFiles` prop description currently reads "Override the default behavior of clearing the array of uploaded files." This is misleading as `clearFiles` is a component accessor, not a `let` prop.
This commit is contained in:
parent
cd687f0e1b
commit
2f3cff2942
5 changed files with 21 additions and 16 deletions
|
@ -6,6 +6,10 @@
|
|||
FileUploaderItem,
|
||||
FileUploaderSkeleton,
|
||||
} from "../types";
|
||||
|
||||
let fileUploader: FileUploader;
|
||||
|
||||
$: fileUploader?.clearFiles();
|
||||
</script>
|
||||
|
||||
<FileUploaderButton
|
||||
|
@ -16,6 +20,7 @@
|
|||
/>
|
||||
|
||||
<FileUploader
|
||||
bind:this="{fileUploader}"
|
||||
multiple
|
||||
labelTitle="Upload files"
|
||||
buttonLabel="Add files"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue