From f4b6d6ebf52b0c0af3d6613d7399df6a46da5ce9 Mon Sep 17 00:00:00 2001 From: Jeff Davidson Date: Sat, 21 Dec 2024 20:21:41 -0800 Subject: [PATCH] Ignore pointer events in FancyEditor placeholders. Fixes issue where clicking the placeholder text doesn't focus on the text box. See #2381 --- imports/client/components/FancyEditor.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/imports/client/components/FancyEditor.tsx b/imports/client/components/FancyEditor.tsx index 12b4c5e15..047fbb753 100644 --- a/imports/client/components/FancyEditor.tsx +++ b/imports/client/components/FancyEditor.tsx @@ -470,6 +470,7 @@ const decorate = ([node, path]: [Node, Path]) => { const PlaceholderSpan = styled.span` position: absolute; opacity: 0.333; + pointer-events: none; `; const renderPlaceholder = ({