Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make files work both ways? #9419

Closed
brunnerh opened this issue Nov 13, 2023 · 1 comment · Fixed by #9463
Closed

Make files work both ways? #9419

brunnerh opened this issue Nov 13, 2023 · 1 comment · Fixed by #9463
Milestone

Comments

@brunnerh
Copy link
Member

brunnerh commented Nov 13, 2023

Describe the problem

In Svelte 4 the input binding for files is one-way out of the element.
This is unexpected behavior because the property can be set

Relates to:

Describe the proposed solution

If the user wants to set the property, they will just have to deal with the DataTransfer shenanigans mentioned in #9415 themselves until maybe a different way to construct a FileList is standardized.

Since this is a small breaking change, Svelte 5 would be a good candidate in my opinion.

Alternatives considered

-

Importance

nice to have

@brunnerh brunnerh changed the title Make files binding less weird? Make files binding work both ways? Nov 13, 2023
@brunnerh brunnerh changed the title Make files binding work both ways? Make files work both ways? Nov 13, 2023
@benmccann benmccann added this to the 5.x milestone Nov 14, 2023
@eltigerchino
Copy link
Member

eltigerchino commented Nov 15, 2023

Related to #8316 and #9080 which will need to be adapted for svelte 5

Svelte 5 reproduction. Clicking the reset button doesn't reset the files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants