You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using an input with type="file", if you choose a file, and then reload the page, the input still has the file selected. However, if you're using bind:files in svelte, the files variable will not be populated with said files. It is only populated on change.
Describe the bug
When using an
input
withtype="file"
, if you choose a file, and then reload the page, the input still has the file selected. However, if you're usingbind:files
in svelte, thefiles
variable will not be populated with said files. It is only populated on change.Reproduction
https://github.com/TGlide/svelte-files-repro
Logs
System Info
System: OS: Linux 6.6 cpe:/o:nixos:nixos:24.11 24.11 (Vicuna) CPU: (32) x64 AMD Ryzen 9 7950X3D 16-Core Processor Memory: 50.74 GB / 62.01 GB Container: Yes Shell: 3.7.1 - /run/current-system/sw/bin/fish Binaries: Node: 20.18.1 - /run/current-system/sw/bin/node npm: 10.8.2 - /run/current-system/sw/bin/npm pnpm: 9.15.3 - /run/current-system/sw/bin/pnpm npmPackages: svelte: ^5.0.0 => 5.19.0
Severity
annoyance
The text was updated successfully, but these errors were encountered: