feat(scaffolder): add new ui:options autoSelect tag (#32912)
* feat(scaffolder): add new ui:autoSelect tag Signed-off-by: Jonathan Sundquist <jonathan.sundquist@factset.com> * Update .changeset/long-hairs-throw.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Jonathan Sundquist <jsundquist@gmail.com> Signed-off-by: Jonathan Sundquist <jonathan.sundquist@factset.com> * Adding missing annotations in the schema file Signed-off-by: Jonathan Sundquist <jonathan.sundquist@factset.com> * Adding missing tests and documentation Signed-off-by: Jonathan Sundquist <jonathan.sundquist@factset.com> * adding in api report files Signed-off-by: Jonathan Sundquist <jonathan.sundquist@factset.com> * Fixing tests and ensure all required files have the necessary updates Signed-off-by: Jonathan Sundquist <jonathan.sundquist@factset.com> --------- Signed-off-by: Jonathan Sundquist <jonathan.sundquist@factset.com> Signed-off-by: Jonathan Sundquist <jsundquist@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
3cf3120eaa
commit
bd5b8426af
@@ -119,6 +119,36 @@ entity:
|
||||
defaultNamespace: payment
|
||||
```
|
||||
|
||||
### `autoSelect`
|
||||
|
||||
Whether to automatically select the highlighted option when the input loses focus. Defaults to `true`.
|
||||
|
||||
When set to `false`, users must explicitly select an option from the dropdown by clicking or pressing Enter. This prevents accidental selections when typing to filter options.
|
||||
|
||||
- Default behavior with `autoSelect` as `true` (auto-selects on blur)
|
||||
|
||||
```yaml
|
||||
entity:
|
||||
title: Entity
|
||||
type: string
|
||||
description: Entity of the component
|
||||
ui:field: EntityPicker
|
||||
ui:options:
|
||||
autoSelect: true
|
||||
```
|
||||
|
||||
- Require explicit selection with `autoSelect` as `false`
|
||||
|
||||
```yaml
|
||||
entity:
|
||||
title: Entity
|
||||
type: string
|
||||
description: Entity of the component
|
||||
ui:field: EntityPicker
|
||||
ui:options:
|
||||
autoSelect: false
|
||||
```
|
||||
|
||||
## MultiEntityPicker
|
||||
|
||||
The input props that can be specified under `ui:options` for the `MultiEntityPicker` field extension.
|
||||
|
||||
Reference in New Issue
Block a user