epam / ketcher

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

After using "Clear Canvas" in the Sequence mode and entering new sequence, extra structures are shown in Flex and Snake modes #4889

Closed ViktoriaTkacheva closed 2 months ago

ViktoriaTkacheva commented 3 months ago

Steps to Reproduce

  1. Switch to the Macro mode – the Sequence mode
  2. Enter any letters on the canvas
  3. Click on the "Clear Canvas" button
  4. Enter any letters on the canvas again

    image
  5. Switch to the Flex or the Snake mode

Actual behavior Extra sugar, phosphate and base are displayed on the canvas

image image

Expected behavior Extra sugar, phosphate and base are not displayed on the canvas

Desktop (please complete the following information):

Ketcher version 2.22.0-rc.7, Build at 2024-06-20; 18:42:41

Zhirnoff commented 3 months ago

Bug reproduced.

https://github.com/epam/ketcher/assets/62464241/d320a314-d35d-46a8-9f51-59bab3ebce79

Zhirnoff commented 2 months ago

Tested. Bug fixed.

https://github.com/epam/ketcher/assets/62464241/323988fd-da50-4db5-9433-c0b15e86ef14

Desktop:

Ketcher version [Version 2.23.0-rc.2] Indigo version [Version 1.22.0-rc.2]