epam / ketcher

Web-based molecule sketcher
https://lifescience.opensource.epam.com/ketcher/demo.html
Apache License 2.0
499 stars 173 forks source link

Undo/Redo operation for bonds and molecules (multi-select) works wrong (doesn't work) #5966

Open AlexeyGirin opened 1 week ago

AlexeyGirin commented 1 week ago

Steps to Reproduce

  1. Go to Macro - Flex
  2. Load from file: Undo_Redo operation for bonds and molecules (multi-select) works wrong (doesn't work).zip image
  3. Select bonds and atoms in the center of chain (using area selection tool) image
  4. Click Erase button image
  5. Press Undo button

Actual behavior Only atoms appeared back image

Expected behavior Atoms and bonds recovered image

Versions

Issue found while testing: https://github.com/epam/ketcher/issues/5359