Commit ea37993
authored
fix(slate-dom): propagate suppressThrow to toSlateNode in toSlatePoint (#6072)
* fix(slate-dom): propagate suppressThrow through toSlateNode in toSlatePoint
When toSlatePoint is called with suppressThrow: true, errors thrown by
toSlateNode were not being suppressed — only errors from findPath were
handled. Wrap the toSlateNode call in the same try/catch pattern already
used for findPath.
This is the gap left by PR #6004 which guarded findPath but not the
preceding toSlateNode call.
* chore: add changeset for toSlatePoint suppressThrow fix
* Prettier fix1 parent c5ea32e commit ea37993
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
923 | | - | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
924 | 932 | | |
925 | 933 | | |
926 | 934 | | |
| |||
0 commit comments