We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eec822a commit 2faa694Copy full SHA for 2faa694
packages/ketcher-core/src/application/editor/modes/SequenceMode.ts
@@ -881,8 +881,8 @@ export class SequenceMode extends BaseMode {
881
if (
882
nodeBeforeSelection === nodeInSameChainBeforeSelection &&
883
nodeBeforeSelection instanceof Nucleotide &&
884
- !(nodeInSameChainAfterSelection instanceof Nucleotide) &&
885
- !(nodeInSameChainAfterSelection instanceof Nucleoside)
+ selectionStartNode instanceof Nucleoside &&
+ (!nodeAfterSelection || nodeAfterSelection instanceof EmptySequenceNode)
886
) {
887
// delete phosphate from last nucleotide
888
modelChanges.merge(
0 commit comments