-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
v-model on a custom element (select v-model) #1800
Comments
Do you mean adding a extra check at https://github.com/vuejs/vue-next/blob/master/packages/compiler-dom/src/transforms/vModel.ts#L64 to allow |
This one is tricky because |
I used @material/mwc-select v-model does not do anything but :value and @change is good enough... |
Looking at the both
Seems to be a pretty difficult to support them, since each implementation varies quite a bit. The only way I would suppose to fix this is with |
Version
3.0.0-rc.5
Reproduction link
https://github.com/vuejs/vue-next/blob/master/packages/compiler-dom/src/transforms/vModel.ts#L93
Steps to reproduce
What is expected?
Be able to specify type=select for a web component ?
What is actually happening?
V_MODEL_SELECT is hard coded to the select tag so we cannot we this directive with a custom element.
To complete this one : #1699
It is a custom component so yes we can provide api compatible with other(s) directive(s) (combo text lazy for example) but I think that it is a valuable use case.
What do you think ?
Otherwise it is working great with custom elements using others directives, thanks !
The text was updated successfully, but these errors were encountered: