Commit 215b817
fix broken exposed ref access when adding custom validation rules
`defineExpose` unwraps refs, so `searchQuery.value` was `undefined` and
`hasUnfinishedParameters` threw inside the `added` handler. Previously the
rule had already been added by the time the error was swallowed; now
`added` is emitted before the selection lands, so the throw aborted it.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0146FsnrtqFd6RhsnrEDf7Fy1 parent 0932c04 commit 215b817
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
| 261 | + | |
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
| |||
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
275 | | - | |
| 276 | + | |
276 | 277 | | |
277 | 278 | | |
278 | 279 | | |
| |||
0 commit comments