mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 08:01:25 +00:00
fix(frontend): Fix FileInput state when hidden (#3730)
This commit is contained in:
@@ -46,6 +46,8 @@
|
||||
fileInput?.clearFiles()
|
||||
}
|
||||
}
|
||||
|
||||
let files: File[] | undefined = undefined
|
||||
</script>
|
||||
|
||||
{#each Object.keys(css ?? {}) as key (key)}
|
||||
@@ -90,6 +92,7 @@
|
||||
class={twMerge('w-full h-full', css?.container?.class, 'wm-file-input')}
|
||||
style={css?.container?.style}
|
||||
submittedText={submittedFileText}
|
||||
bind:files
|
||||
>
|
||||
{text}
|
||||
</FileInput>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
let input: HTMLInputElement
|
||||
let files: File[] | undefined = undefined
|
||||
export let files: File[] | undefined = undefined
|
||||
|
||||
async function onChange(fileList: FileList | null) {
|
||||
if (!fileList || !fileList.length) {
|
||||
|
||||
Reference in New Issue
Block a user