We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
2.3.0
2.3.0 - https://jsfiddle.net/f0n7jmL7/ 2.2.6 - https://jsfiddle.net/eu1q0a8b/
span
null
i expect the above example to work as it did in vue@2.2.6
Vue throws an error Uncaught TypeError: Cannot set property 'isRootInsert' of null when functional component returns null value instead of vnode.
Uncaught TypeError: Cannot set property 'isRootInsert' of null
// EDIT: Also something I noticed in 2.3.0. If you will return undefined instead of null at the end of FormErrors, then our example works again.
undefined
The text was updated successfully, but these errors were encountered:
HI, I think this problem is caused when creating vnode
https://github.com/vuejs/vue/blob/dev/src/core/vdom/create-element.js#L102
in 2.2.6:
if (vnode) { if (ns) { applyNS(vnode, ns); } return vnode } else { return createEmptyVNode() }
because of your component FormErrors return null so...
FormErrors
You can temporarily output an empty element to solve it return undefined
return undefined
Sorry, something went wrong.
3b426ef
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Version
2.3.0
Reproduction link
2.3.0 - https://jsfiddle.net/f0n7jmL7/
2.2.6 - https://jsfiddle.net/eu1q0a8b/
Steps to reproduce
span
tag instead ofnull
value at the end - no error this time and the example works fineWhat is expected?
i expect the above example to work as it did in vue@2.2.6
What is actually happening?
Vue throws an error
Uncaught TypeError: Cannot set property 'isRootInsert' of null
when functional component returns null value instead of vnode.// EDIT: Also something I noticed in 2.3.0. If you will return
undefined
instead ofnull
at the end of FormErrors, then our example works again.The text was updated successfully, but these errors were encountered: