Commit f8bc773
fix(rte): guard editor.value in nextTick with optional chaining
The synchronous null check doesn't protect against the component
unmounting between the watcher firing and the nextTick callback
running — useEditor's onUnmounted sets editor.value to null, which
would cause a throw. Optional chaining handles this safely.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 7c45abf commit f8bc773
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
0 commit comments