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

Props validation fails (Vue warn) when component initialized with proper propsData #3183

Closed
trailskr opened this issue Jun 29, 2016 · 1 comment

Comments

@trailskr
Copy link
Contributor

trailskr commented Jun 29, 2016

I made a universal component (modal) that can be used as inline component
<modal :entity="some">
or via service
this.$modal.open({propsData: {...}, component: ModalForm})
it works fine, but warns about invalid props, because it runs in compileProps step, and propsData will be used later in makePropsLinkFn step (compile-props.js).
I think propsData should also be a source of validation along with element attributes

version 1.0.26 jsFilddle (see console)
version 2.0.0-alpha.8 does not have this problem

@kazupon
Copy link
Member

kazupon commented Jul 1, 2016

Close (Fixed in #3193)

@kazupon kazupon closed this as completed Jul 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants