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(runtime-core): should not rewrite ref when fallthrough slot #1369

Closed
wants to merge 1 commit into from

Conversation

underfin
Copy link
Member

fix #1311

@@ -573,7 +575,7 @@ describe('attribute fallthrough', () => {
}

const Child = {
setup(props: any) {
setup() {
return () => [
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix eslint

root = cloneVNode(root, fallthroughAttrs)
root.ref = ref
} else if (__DEV__ && !accessedAttrs && root.type !== Comment) {
Copy link
Member Author

@underfin underfin Jun 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug Reason
The ctx has changed after invoke cloneVnode.

@yyx990803
Copy link
Member

Since the bug is actually from cloneVNode, we should fix that instead. See be69bee

@yyx990803 yyx990803 closed this Jun 15, 2020
@underfin underfin deleted the ref-ctx-error-with-slot branch June 16, 2020 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cannot get $refs.xxx for root dom
2 participants