Commit 05d105c
fix: prevent title input remount on outline update in view modal (#331)
The loadPageDoc effect depended on the `resolvedView` object reference,
so every title edit that propagated through the outline produced a fresh
view object, re-fired the effect, and called setDoc(undefined) — which
unmounted the editor mid-keystroke and reset the title to the
server-side value on remount. Depend on a boolean derived from
resolvedView instead, so the effect only fires on the genuine
"metadata absent → present" transition.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ade09b4 commit 05d105c
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
166 | 172 | | |
167 | | - | |
| 173 | + | |
168 | 174 | | |
169 | 175 | | |
170 | | - | |
| 176 | + | |
171 | 177 | | |
172 | 178 | | |
173 | 179 | | |
| |||
0 commit comments