Skip to content

Commit

Permalink
#3986 - Macro: Selected RNA preset not discards when mouse moved on c…
Browse files Browse the repository at this point in the history
…anvas and ESC button is pressed
  • Loading branch information
Ruslan Dzhafarov committed Mar 29, 2024
1 parent 8310bb6 commit 5025a80
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/ketcher-core/src/application/editor/tools/RnaPreset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,16 @@ class RnaPresetTool implements Tool {
this.phosphatePreviewRenderer?.show(this.editor.theme);
}
}

hidePreview() {
this.rnaBasePreviewRenderer?.remove();
this.phosphatePreviewRenderer?.remove();
this.sugarPreviewRenderer?.remove();
}

destroy(): void {
this.hidePreview();
}
}

export { RnaPresetTool };

0 comments on commit 5025a80

Please sign in to comment.