Skip to content

When using v-model on a component element, the value prop is always a String #3179

@LinusBorg

Description

@LinusBorg

Vue.js version

v2.0.0-alpha.8

Reproduction Link

https://jsfiddle.net/nf02Ltct/2/

Steps to reproduce

  • open console
  • read warning

What is Expected?

the special "value" prop which is passed from v-model on the component element in the template, shuold contain a Boolean value, since the parent passes a Boolean to v-model

What is actually happening?

[Vue warn]: Invalid prop: type check failed for prop "value". Expected Boolean, got String. (found in component: )

Suspicion:

I think it has something to do with whith this comment:

https://github.com/vuejs/vue/blob/v2.0.0-alpha.8/src/platforms/web/runtime/modules/props.js#L20-L21

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions