Commit b54c469
Don't blank the schema picker while typing a replacement
The previous commit made SchemaLookup emit `select` on every cleared selection.
But CdxLookup also deselects (emits update:selected null) while the user types to
replace an existing value, so editing a set target schema round-tripped an empty
value back and wiped the field mid-edit.
Only emit the clear when the input is actually empty, matching SubjectLookup's
onSubjectSelected guard.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent c5eb0be commit b54c469
2 files changed
Lines changed: 15 additions & 1 deletion
File tree
- resources/ext.neowiki
- src/components/common
- tests/components/common
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
159 | 169 | | |
160 | 170 | | |
161 | 171 | | |
| |||
0 commit comments