Commit f76f679
Don't sync the selection from a rich text edited inside another host
When a rich text is itself focused but nested inside another editing host
(e.g. an HTML block's static inner blocks), writing flow owns its selection.
Return early from the selection change handler in that case, matching the
focus handler, so the permanently subscribed listener does not fight writing
flow over the caret. The editable root host case is unaffected: there the
host holds focus, not the element.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent c6cc10b commit f76f679
1 file changed
Lines changed: 11 additions & 0 deletions
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
145 | 156 | | |
146 | 157 | | |
147 | 158 | | |
| |||
0 commit comments