Commit 02c3143
committed
Fix single-select options validation and toolbar focus delegation
single-select: Use state._options (parsed by controller) for validation
and restore original else-branch for updateInputValue to avoid erasing
user input when _value is null.
toolbar: Call firstEnabledItem.focus() (the Stencil @method) instead of
setFocus() which calls the native HTMLElement focus and doesn't delegate
to the inner button. Both HTMLKolButtonWcElement and HTMLKolLinkWcElement
expose focus(): Promise<void> so no any-cast is needed.
https://claude.ai/code/session_01BRnViGPGv2XXH7kaE3EDCZ1 parent 877ed03 commit 02c3143
2 files changed
Lines changed: 14 additions & 3 deletions
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
714 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
715 | 724 | | |
716 | 725 | | |
| 726 | + | |
| 727 | + | |
717 | 728 | | |
718 | 729 | | |
719 | 730 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments