Slots that have no markup in the in intial HTML document payload are not represented in the Overlay UI

Created on 24 October 2025, 7 days ago

Overview

Originally reported in 🐛 Annotations for child components within slots are lost Active

When the overlay is built (by finding the HTML comments in the iFrame document whenever it changes) a walker goes through and finds the comments and then finds an HTML tag inside to build up a map of component ID (derived from the comment) to DOM elements in the iFrame.

This issue occurs when that initial attempt to build the map fails to find an HTML element in the DOM inside the comments. This can happen if the initial payload does not contain the HTML and then components are asynchronously loaded in afterwards.

Proposed resolution

Ensure that if the DOM is mutated after load, we re-run the creation of the component to DOM element map.

User interface changes

🐛 Bug report
Status

Active

Version

1.0

Component

User interface

Created by

🇬🇧United Kingdom jessebaker

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024