Commit 091398a
authored
fix: Fix single-select checkbox state in planning mode (#1312)
## Problem
In single-select mode, clicking the "Other" option enters edit mode without clearing the previous selection, and typing auto-checks "Other" without clearing others so you end up with two items checked. Then you can't uncheck either because single-select toggleCheck always re-selects the clicked item.

## Changes
1. Allow unchecking a selected option in single-select mode (toggleCheck)
2. Clear other selections when clicking a custom-input option in single-select mode (handleClick, selectCurrent)
3. Clear other selections when auto-checking custom input on text entry in single-select mode (handleCustomInputChange)
## How did you test this?
Manually1 parent eb89c54 commit 091398a
1 file changed
Lines changed: 16 additions & 3 deletions
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
178 | 182 | | |
179 | 183 | | |
180 | 184 | | |
| |||
227 | 231 | | |
228 | 232 | | |
229 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
230 | 237 | | |
231 | 238 | | |
232 | 239 | | |
| |||
330 | 337 | | |
331 | 338 | | |
332 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
333 | 343 | | |
334 | 344 | | |
335 | 345 | | |
| |||
382 | 392 | | |
383 | 393 | | |
384 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
385 | 398 | | |
386 | 399 | | |
387 | 400 | | |
| |||
391 | 404 | | |
392 | 405 | | |
393 | 406 | | |
394 | | - | |
| 407 | + | |
395 | 408 | | |
396 | 409 | | |
397 | 410 | | |
| |||
0 commit comments