draft-js icon indicating copy to clipboard operation
draft-js copied to clipboard

Error inserting text

Open mikstime opened this issue 4 years ago • 1 comments

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

App crashes when multiple line breaks are pasted

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

  • Open draftjs.org editor

  • Press Enter multiple times in editor

  • Copy text

  • Reload page

  • Insert text in editor

What is the expected behavior?

Text is pasted with no error

Which versions of Draft.js, and which browser / OS are affected by this issue?

MacOs 11.4, latest chrome (91.0.4472.114), safari (14.1.1 (16611.2.7.1.4)), draft.js (0.11.7)

mikstime avatar Jul 21 '21 16:07 mikstime

FYI This bug is still presented on draftjs.org

mikstime avatar Nov 14 '22 08:11 mikstime