mirror of
https://github.com/penpot/penpot.git
synced 2026-07-21 13:37:49 +00:00
Clamp selection offset to node length in setDraftEditorSelection to prevent DOMException when Draft.js SelectionState offset exceeds the actual DOM text node length. This can happen during spellcheck, IME composition, or race conditions during React re-renders. Updates @penpot/draft-js to commit 09a33e0a which includes the fix in addPointToSelection and addFocusToSelection. Fixes #10607 AI-assisted-by: mimo-v2.5-pro