fix: prevent stream click navigation during text edit

This commit is contained in:
talksik
2026-04-12 12:15:59 -07:00
parent 7568ceb80d
commit be9cf6c5f0
@@ -51,7 +51,10 @@ export function TextEditOverlay({
}, [saving, textContent, particle.properties.content, particle.id, streamPath, onClose]);
return createPortal(
<div className="fixed inset-0 z-[100]">
// React synthetic events bubble through the React tree (not the DOM tree),
// so clicks here would reach stream-view's click-to-navigate handler even
// though we're portaled to document.body. Stop propagation at the root.
<div className="fixed inset-0 z-[100]" onClick={(e) => e.stopPropagation()}>
<TextEditor
textContent={textContent}
onTextChange={setTextContent}