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:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user