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 29, 2024
1 parent 68ecf13 commit aae1e89
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 aae1e89

Please sign in to comment.