Skip to content

Commit

Permalink
Ignore pointer events in FancyEditor placeholders.
Browse files Browse the repository at this point in the history
Fixes issue where clicking the placeholder text doesn't focus on the
text box.

See deathandmayhem#2381
  • Loading branch information
jpd236 committed Dec 22, 2024
1 parent a3855d7 commit 186e6d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions imports/client/components/FancyEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ const decorate = ([node, path]: [Node, Path]) => {
const PlaceholderSpan = styled.span`
position: absolute;
opacity: 0.333;
pointer-events: none;
`;

const renderPlaceholder = ({
Expand Down

0 comments on commit 186e6d8

Please sign in to comment.