Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rich-text-editor] Error thrown when selecting and removing multi-line text #7898

Closed
web-padawan opened this issue Oct 1, 2024 · 0 comments · Fixed by #7899
Closed

[rich-text-editor] Error thrown when selecting and removing multi-line text #7898

web-padawan opened this issue Oct 1, 2024 · 0 comments · Fixed by #7899
Assignees

Comments

@web-padawan
Copy link
Member

web-padawan commented Oct 1, 2024

Description

When typing text with multiple lines, selecting it and pressing Backspace the following error is thrown:

keyboard.js:375 Uncaught ReferenceError: DeltaOp is not defined
    at Vt.Jt (keyboard.js:375:10)
    at keyboard.js:111:67
    at Array.some (<anonymous>)
    at HTMLDivElement.<anonymous> (keyboard.js:87:24)
Jt @ keyboard.js:375
(anonymous) @ keyboard.js:111
(anonymous) @ keyboard.js:87

This is most probably a regression from #7613 and especially vaadin/quill#4

Expected outcome

There should be no error.

Minimal reproducible example

Can be reproduced in the dev page.

Steps to reproduce

  1. Type something in the vaadin-rich-text-editor
  2. Press Enter and type some more characters
  3. Select all the text and delete it using Backspace
  4. Check the console for errors

Environment

Vaadin version(s): 24.5 (latest)

Browsers

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant