mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 Fix paste when collpaseNode is a br
This commit is contained in:
@@ -1101,6 +1101,9 @@ export class SelectionController extends EventTarget {
|
||||
);
|
||||
this.focusParagraph.after(fragment, newParagraph);
|
||||
}
|
||||
if (isLineBreak(collapseNode)) {
|
||||
return this.collapse(collapseNode, 0);
|
||||
}
|
||||
return this.collapse(collapseNode, collapseNode.nodeValue.length);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user