Commit 998561a
committed
fix(ui): honor the focus() contract + fix dangling docs reference (SD-3312)
focus now fails with not-ready when setTextSelection is unavailable and
not-reachable when it doesn't place the caret, so { success: true } means the
caret was actually placed (was reported regardless via optional chaining).
Docs: introduce the smartField tag convention inline instead of referencing a
"convention above" that wasn't introduced earlier on the page.1 parent f8f4fdc commit 998561a
2 files changed
Lines changed: 12 additions & 3 deletions
File tree
- apps/docs/editor/custom-ui
- packages/super-editor/src/editors/v1/core/presentation-editor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3924 | 3924 | | |
3925 | 3925 | | |
3926 | 3926 | | |
| 3927 | + | |
| 3928 | + | |
| 3929 | + | |
| 3930 | + | |
| 3931 | + | |
| 3932 | + | |
3927 | 3933 | | |
3928 | 3934 | | |
3929 | 3935 | | |
| |||
3934 | 3940 | | |
3935 | 3941 | | |
3936 | 3942 | | |
3937 | | - | |
| 3943 | + | |
| 3944 | + | |
3938 | 3945 | | |
3939 | 3946 | | |
3940 | | - | |
| 3947 | + | |
| 3948 | + | |
| 3949 | + | |
3941 | 3950 | | |
3942 | 3951 | | |
3943 | 3952 | | |
| |||
0 commit comments