fix(raw_apps): clear inspector overlay on the preview iframe, not the source

This commit is contained in:
Guilhem Lemouel
2026-05-25 17:00:45 +02:00
parent 55a5163da6
commit ab7b7f310e
@@ -1099,7 +1099,8 @@
function clearInspectorSelection() {
inspectorElement = undefined
iframe?.contentWindow?.postMessage({ type: 'inspectorClear' }, '*')
// Inspector lives in the preview iframe, so clear its overlay there.
previewIframe?.contentWindow?.postMessage({ type: 'inspectorClear' }, '*')
}
function handleSelectFile(path: string) {