You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create 2 functional components without templates, use render functions.
In a Button.js create a component with slot named "icon"
In a Wrapper.js create a component with the Button component we created earlier, and use slot property in order to place contents of wrapper inside an "icon" slot of the button component.
What is expected?
Contents must be rendered inside a named slot
What is actually happening?
Contents not being displayed in a named slot
The text was updated successfully, but these errors were encountered:
Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.
Thanks, for the quick reply, but i still don't understand the purpose of slot, could you throw an example with it? Why scopedSlots in my case would do a job? Isn't they are used when you pass some data?
There is a problem with this solution. Because scopedSlots will always call the render function to generate a new vnode every time when you getting vnode. So no matter when you get the vnode, the vnode.elm is undefined
Version
2.6.11
Reproduction link
https://codesandbox.io/s/vigilant-diffie-shhg8?file=/src/components/Wrapper.js
Steps to reproduce
What is expected?
Contents must be rendered inside a named slot
What is actually happening?
Contents not being displayed in a named slot
The text was updated successfully, but these errors were encountered: