Minor Changes
- #6073
6fa9a129Thanks @NikunjSonigara! - Add asuppressThrowoption touseSelectedto returnfalseinstead of throwing when the element can no longer be found in the editor.
Patch Changes
- #6080
9265c408Thanks @isachivka! - Suppress thefindPaththrow when translatingbeforeinputtarget ranges in<Editable>(#3556). A browser target range can point at a DOM node no longer resolvable to a Slate node (staleNODE_MAPafter a re-render, IME composition, cross-editor click); withsuppressThrow: falsethe "Unable to find the path" error escaped the DOM event handler and crashed the app. The twoonDOMBeforeInputcall sites now usesuppressThrow: true(matching the othertoSlateRangesites) and degrade gracefully — fall back to synthetic handling, or skip the selection move.