-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
Dynamic component not rendering slot tree #6891
Comments
Please provide a repro and not a whole project. You can use this fiddle to set it out: http://jsfiddle.net/posva/wsr78d2w/ |
@posva For now I was not able to reproduce with fidlle or codepen. it may be relelated to the fact I'm using webpack with vue-loader/template compiler !? I guess I'll try some more ... Question though.
{created: "mdc-drawer12", children: Array(0), slots: Array(3)}
{created: "mdc-temporary-drawer13", children: Array(0), slots: Array(3)}
{created: "mdc-drawer-list15", children: Array(0), slots: Array(23)}
{mounted: "mdc-drawer-list15", children: Array(23), slots: Array(23)}
{mounted: "mdc-temporary-drawer13", children: Array(2), slots: Array(3)}
{mounted: "mdc-drawer12", children: Array(1), slots: Array(3)}
{created: "mdc-persistent-drawer65", children: Array(0), slots: Array(3)}
{created: "mdc-drawer-list67", children: Array(0), slots: Array(23)}
{beforeDestroy: "mdc-temporary-drawer13", children: Array(2), slots: Array(3)}
{beforeDestroy: "mdc-drawer-list15", children: Array(23), slots: Array(23)}
{destroyed: "mdc-drawer-list15", children: Array(23), slots: Array(23)}
{destroyed: "mdc-temporary-drawer13", children: Array(2), slots: Array(3)}
{mounted: "mdc-drawer-list67", children: Array(0), slots: Array(23)}
{mounted: "mdc-persistent-drawer65", children: Array(2), slots: Array(3)}
{created: "mdc-temporary-drawer68", children: Array(0), slots: Array(3)}
{created: "mdc-drawer-list70", children: Array(0), slots: Array(23)} Any idea why |
Version
2.5.2
Reproduction link
https://stasson.github.io/vue-mdc-adapter
Steps to reproduce
1- Open https://stasson.github.io/vue-mdc-adapter with chrome or edge, full width,
2- click the toolbar menu icon, the persistent drawer open/close and renders properly
3- Decrease the width of the window so that you hit the mobile media query (max-width: 840px)
4- the drawer is now a temporary drawer ( fixed ) but content is not rendered
What is expected?
the drawer content should be rendered
What is actually happening?
once dynamic update of the drawer component, the content (slot) is not rendered
a sumary on the issue on the forum:
https://forum.vuejs.org/t/dynamic-component-not-rendering-slot-tree/20215
to reproduce in dev mode:
clone the repo https://github.com/stasson/vue-mdc-adapter then npm install ; npm run dev
I already tried to checked that the lyfe-cycle seem to be properly called and that $slot.default has the proper VNodes. Am I facing a virtual dom caching issue ?
The text was updated successfully, but these errors were encountered: