Skip to content

Commit

Permalink
Merge pull request #69 from low-earth-orbit/text-content-bug-fix
Browse files Browse the repository at this point in the history
Update text content in store upon clicking outside of text
  • Loading branch information
low-earth-orbit authored Oct 14, 2024
2 parents 5c9593a + 7f87263 commit 1c9806e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/text/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,11 @@ export default function TextField({

const handleOutsideClick = (e: any) => {
if (e.target !== textarea) {
node.text(textarea.value);
onChange({
...selectedProps,
text: textarea.value,
}); // Update text content

removeTextarea();
}
};
Expand Down

0 comments on commit 1c9806e

Please sign in to comment.