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

When removing multiple blocks, Ctrl+Z doesn't return all of them #285

Open
adaptedbee opened this issue Sep 23, 2024 · 2 comments
Open

When removing multiple blocks, Ctrl+Z doesn't return all of them #285

adaptedbee opened this issue Sep 23, 2024 · 2 comments
Labels
🐞 Bug Something isn't working ⛑ Needs triage Someone is checking

Comments

@adaptedbee
Copy link

Description

When removing multiple blocks, Ctrl+Z doesn't return all of them

Environment

  • Editor.js version: 2.29.1
  • editorjs-undo version: 2.0.28
  • Device, Browser, OS: Desktop, Windows 10, Google Chrome 128.0.6613.139

Current behavior

  1. Select few paragraphs with mouse
  2. Press 'Backspace' to delete them
  3. Press 'Ctrl+Z'

-- Paragraphs doesn't return. (Sometimes, only first of them returns)
-- Console shows warning like 'There is no block at index 1684'

Expected behavior

Paragraphs return

@adaptedbee adaptedbee added ⛑ Needs triage Someone is checking 🐞 Bug Something isn't working labels Sep 23, 2024
@Koffer0-0
Copy link

Same issue, but when trying to delete it from tool one by one, it works(undo/redo)

@Matergi
Copy link

Matergi commented Oct 14, 2024

Same issue, any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working ⛑ Needs triage Someone is checking
Projects
None yet
Development

No branches or pull requests

3 participants