Skip to content

Commit

Permalink
Portal.view.learn: moving a live preview into a popup sometimes rende…
Browse files Browse the repository at this point in the history
…rs the cmp into the same window again #6372
  • Loading branch information
tobiu committed Feb 3, 2025
1 parent a50252f commit 24660d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/Base.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2300,7 +2300,7 @@ class Component extends Base {
// Verify that the critical rendering path => CSS files for the new tree is in place
if (currentWorker.countLoadingThemeFiles !== 0) {
currentWorker.on('themeFilesLoaded', function() {
me.render(mount)
!me.mounted && me.render(mount)
}, me, {once: true});

return
Expand Down

0 comments on commit 24660d9

Please sign in to comment.