fix(ui): add openOnClick prop to Combobox for reliable dropdown opening (#1795)

---------

Co-authored-by: leiyutian <leiyutian@echo.tech>
Co-authored-by-agent: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Ryan Lei
2026-05-09 22:44:27 +08:00
committed by GitHub
co-authored by leiyutian
parent 24cc7a3e12
commit 37807b84d6
4 changed files with 17 additions and 2 deletions
+3
View File
@@ -379,6 +379,7 @@ Searchable dropdown/autocomplete using reka-ui with grouping.
| `options` | `ComboboxOptionItem<T>[] \| ComboboxOptionGroupItem<T>[]` | *(required)* | Options |
| `placeholder` | `string?` | — | Placeholder |
| `disabled` | `boolean?` | `false` | Disabled |
| `openOnClick` | `boolean?` | `true` | Auto-open dropdown on click |
| `contentMinWidth` | `string \| number?` | — | Dropdown min width |
| `contentWidth` | `string \| number?` | — | Dropdown width |
@@ -394,6 +395,7 @@ Simplified Combobox wrapper for string/number options.
| `options` | `{ label, value, description?, disabled?, icon? }[]?` | — | Options |
| `placeholder` | `string?` | — | Placeholder |
| `disabled` | `boolean?` | `false` | Disabled |
| `openOnClick` | `boolean?` | `true` | Auto-open dropdown on click |
| `title` | `string?` | — | Title |
| `layout` | `'horizontal' \| 'vertical'?` | — | Layout direction |
| `contentMinWidth` | `string \| number?` | — | Dropdown min width |
@@ -527,6 +529,7 @@ All Field components wrap a base input with `label`, `description`, and consiste
| `options` | `{ label, value, description?, disabled?, icon? }[]?` | — | Options |
| `placeholder` | `string?` | — | Placeholder |
| `disabled` | `boolean?` | `false` | Disabled |
| `openOnClick` | `boolean?` | `true` | Auto-open dropdown on click |
| `layout` | `'horizontal' \| 'vertical'` | `'horizontal'` | Layout |
**v-model**: `modelValue: string`