Skip to content

Alpine crashes when setting el.value to a file input #4374

Closed Answered by ekwoka
nerdoc asked this question in 5. Bugs
Discussion options

You must be logged in to vote

You can't use x-model on a file input, because their semantics are just totally different from many other input types.

You can handle the change event to get the files into your component, and bind files to the input if needed.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nerdoc
Comment options

Answer selected by nerdoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants