wonderful-panda/vue-tsx-support

Missing attribute of `file` in InputHTMLAttributes

keyakko opened this issue · 1 comments

A type error occurs when using an Input element with the attribute type="file".

I wrote tsx codes like below.
Screen Shot 2021-04-25 at 11 11 41

When I retrieve a file, it cannot be retrieved properly due to a type error.
Screen Shot 2021-04-25 at 11 13 45

In this case, event.target will contain HTMLInputElement.
And HTMLInputElement.files is expected to be undefined(optional) or FileList.
https://html.spec.whatwg.org/multipage/input.html#htmlinputelement

attribute FileList? files;

Try 3.2.0-beta.1