mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +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);
|
||||
}
|
||||
if (isLineBreak(collapseNode)) {
|
||||
return this.collapse(collapseNode, 0);
|
||||
}
|
||||
return this.collapse(collapseNode, collapseNode.nodeValue.length);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user