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
fix(VFileInput): expose InputHTMLAttributes type #17077
Conversation
This shouldn't be necessary, we don't want to list every possible html attribute in the docs: Arbitrary attributes should be supported on every component: https://discord.com/channels/340160225338195969/660898563139567625/1091801131128205423 |
declare module '@vue/runtime-core' {
export interface AllowedComponentProps {
[key: string]: any;
}
} I don't think we should include this ourselves though |
I agree with you, this should not be in our end. Having said this, allowing arbitrary attributes does not mean allowing arbitrary values , we will still need |
vuejs/language-tools#1077 (comment) @KaelWD I tested in my local , user can define arbitrary attributes types via |
I have no idea why we need this but I can set any attr to any elements. I also use vite +TS and everything works. it doesn't make sense define each attr for TS. It can be added in docs or somewhere else I think |
aa22a14
to
ca89962
Compare
Closing in favour of #17082 |
fix #17069
It is supported in v2
InputHTMLAttributes
includingaccept
should be type supported in VFileInput.input attributes like
accept
will be passed to input via attributesAllows users to safely specify any legit input(file) attributes. e.g. autofocus, accept ...
Description
fix #17069
Markup: