You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
This one is tricky because <select> relies on specific behavior with its interaction with <option> elements inside of it. So it won't work unless you implement your custom <select> and <option> with the exact same behavior as the native ones (i.e. reflecting options into DOM properties like .options, .selectedInex, .value, and vice-versa).
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 aria-* we could infer the option based on aria-keys and whatnot, but I believe it would be pretty complicated to traverse the key for the v-model.
IMO we need an API to allow expand the v-model or recommend to create a component on top of select web component.
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: