Skip to content

Vue 1.0.0-beta.3 Non-required two-way binding warns if omitted. #1400

@Morgul

Description

@Morgul

On Vue v1.0.0-beta.3, when creating a component that has a two-way binding specified, but not required, a warning is still thrown.

For example:

var component = Vue.component({
        props: {
            show: {
                type: Boolean,
                default: false,
                twoWay: true
            }
        }
});

This prints the warning: "[Vue warn]: Prop "show" expects a two-way binding type."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions