-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
fix(vapor): handle next host node for vapor component #13823
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(vapor): handle next host node for vapor component #13823
Conversation
…de before which the new node is to be inserted is not a child of this node.
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
❌ Deploy Preview for vue-sfc-playground failed. Why did it fail? →
|
@@ -2499,7 +2499,8 @@ function baseCreateRenderer( | |||
const getNextHostNode: NextFn = vnode => { | |||
if (vnode.shapeFlag & ShapeFlags.COMPONENT) { | |||
if ((vnode.type as ConcreteComponent).__vapor) { | |||
return hostNextSibling((vnode.component! as any).block) | |||
const next = hostNextSibling((vnode.component! as any).block) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be vnode.anchor
I have already fixed it at #12962
core/packages/runtime-core/src/renderer.ts
Line 2514 in 98e1dd1
return hostNextSibling(vnode.anchor!) |
Playground