Skip to content
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

fix(core): setProps validates keys against component options #416

Merged
merged 1 commit into from Feb 7, 2018
Merged

fix(core): setProps validates keys against component options #416

merged 1 commit into from Feb 7, 2018

Commits on Feb 7, 2018

  1. fix(core): setProps validates keys against component options

    Vue's constructor doesn't allow setting props on a component that weren't
    declared, however the setProps method was adding all given keys regardless of
    whether they were declared for the component. This change makes setProps
    validate keys against the Vue instance's cached list of property keys before
    setting the value so that setProps behavior more closely matches that of
    passing propsData into the constructor options.
    Nick Gravelyn committed Feb 7, 2018
    Configuration menu
    Copy the full SHA
    2a9d616 View commit details
    Browse the repository at this point in the history