LearnNewsExamplesServices
Frontmatter
id6372
titlePortal.view.learn: moving a live preview into a popup sometimes renders the cmp into the same window again
stateClosed
labels
bug
assigneestobiu
createdAtFeb 3, 2025, 11:51 PM
updatedAtFeb 3, 2025, 11:52 PM
githubUrlhttps://github.com/neomjs/neo/issues/6372
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 3, 2025, 11:52 PM

Portal.view.learn: moving a live preview into a popup sometimes renders the cmp into the same window again

Closed v8.14.1 bug
tobiu
tobiu commented on Feb 3, 2025, 11:51 PM

Image

This is a funny one. first thought was it is related to the vdom update changes. it is not.

component.Base: render()will check for non-loaded theme files. in this case, the mounting will get delayed until themeFilesLoaded triggers. This can happen at any arbitrary point and by then parent containers have already taken care of this part.

Long story short: when the callback gets triggered, we need to check if the cmp is already mounted.

tobiu added the bug label on Feb 3, 2025, 11:51 PM
tobiu assigned to @tobiu on Feb 3, 2025, 11:51 PM
tobiu referenced in commit 24660d9 - "Portal.view.learn: moving a live preview into a popup sometimes renders the cmp into the same window again #6372" on Feb 3, 2025, 11:52 PM
tobiu closed this issue on Feb 3, 2025, 11:52 PM