-
Couldn't load subscription status.
- Fork 46
Open
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior
Description
Describe the bug
Unload doesn't clear selection: it removes representations but yellow areas that indicate selection remain.
To Reproduce
Steps to reproduce the behavior:
- Have examples build (run yarn ci command)
- Open Miew API exampel (.../miew/packages/miew/build/examples/api.html)
- Select any part of loaded molecule (click on it)
- Click 'Load 4XN6.cif' button
Actual behavior
- Previously loaded molecules disappear
- Yellow areas of selection are still on screen
Expected behavior
- Previously loaded molecules disappear
- Yellow areas of selection disappear
Desktop (please complete the following information):
- OS: Windows
- Browser: chrome
- Version: 138.0.7204.183
Additional context
- Quick research shows that problem goes from the implementation of Unload: it really doesn't clear the selection. In contrast you can check Reset function and what it clears
- During fix it will be important also to think about the case when multiple molecules are loaded. If unload was executed for only one molecule then only its selection should be remove
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior
Type
Projects
Status
To do