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 3f17926 commit f4b6d6e
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 f4b6d6e

Please sign in to comment.