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:
Aitor Moreno
2025-07-28 17:39:25 +02:00
committed by GitHub
3 changed files with 29 additions and 0 deletions

View File

@@ -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;