mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
Merge pull request #6880 from penpot/elenatorro-fix-editor-crash-on-deleting-entire-selection-firefox
🐛 Handle empty paragraph on entire selected text deletion
This commit is contained in:
@@ -1524,6 +1524,7 @@ export class SelectionController extends EventTarget {
|
||||
|
||||
const startNode = getClosestTextNode(this.#range.startContainer);
|
||||
const endNode = getClosestTextNode(this.#range.endContainer);
|
||||
|
||||
const startOffset = this.#range.startOffset;
|
||||
const endOffset = this.#range.endOffset;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user