Skip to content

v-model on a custom element (select v-model) #1800

@Benoit-Vasseur

Description

@Benoit-Vasseur

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

  • try to us a web component with the "select api"

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 !

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions