mirror of
https://github.com/penpot/penpot.git
synced 2026-09-10 22:19:19 +00:00
🐛 Fix paste when collpaseNode is a br
This commit is contained in:
parent
ceb184782f
commit
7f6af6179b
@ -1101,6 +1101,9 @@ export class SelectionController extends EventTarget {
|
|||||||
);
|
);
|
||||||
this.focusParagraph.after(fragment, newParagraph);
|
this.focusParagraph.after(fragment, newParagraph);
|
||||||
}
|
}
|
||||||
|
if (isLineBreak(collapseNode)) {
|
||||||
|
return this.collapse(collapseNode, 0);
|
||||||
|
}
|
||||||
return this.collapse(collapseNode, collapseNode.nodeValue.length);
|
return this.collapse(collapseNode, collapseNode.nodeValue.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user