Safari: Preview overlay does not update when iFrame is swapped

Created on 28 July 2025, 11 days ago

Overview

When the preview is updated (adding/removing components, updating props), the iFrameSwapper loads the new content and, once loaded, swaps the current iFrame out for the one with the new content.

After the swap the Overlay UI is supposed to be updated with the new bounding rects of all the components on the page.

This is working in Chrome and Firefox but in Safari the call to updateComponentsMap in useComponentHtmlMap.ts never fires.

Attached gif shows duplicating a component in Safari. Afterwards the Overlay is still showing the positions of the elements as they were before the iFrame swap occured.

Proposed resolution

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

Production build 0.71.5 2024