fix: Pasting document content in title should behave as expected

This commit is contained in:
Tom Moor
2022-11-16 23:29:29 -05:00
parent 19d33a7658
commit 552c0ecf01
2 changed files with 32 additions and 2 deletions

View File

@@ -118,8 +118,8 @@ const ContentEditable = React.forwardRef(
}
}, [value, contentRef]);
// Ensure only plain text can be pasted into title when pasting from another
// rich text editor
// Ensure only plain text can be pasted into input when pasting from another
// rich text source
const handlePaste = React.useCallback(
(event: React.ClipboardEvent<HTMLSpanElement>) => {
event.preventDefault();