You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Minor Changes
#60736fa9a129 Thanks @NikunjSonigara! - Add a suppressThrow option to useSelected to return false instead of throwing when the element can no longer be found in the editor.
Patch Changes
#60809265c408 Thanks @isachivka! - Suppress the findPath throw when translating beforeinput target ranges in <Editable> (#3556). A browser target range can point at a DOM node no longer resolvable to a Slate node (stale NODE_MAP after a re-render, IME composition, cross-editor click); with suppressThrow: false the "Unable to find the path" error escaped the DOM event handler and crashed the app. The two onDOMBeforeInput call sites now use suppressThrow: true (matching the other toSlateRange sites) and degrade gracefully — fall back to synthetic handling, or skip the selection move.