Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/props.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,3 +339,17 @@ The label of an option is displayed in the dropdown and as the selected option (
Resolves option data to a string to compare options and specify value attributes.

This function can be used if you don't want to use the standard `option.value` as the value of the option.

## selectOnBlur

**Type**: `boolean`

**Default**: `true`

When set to `true`, the focused option will be automatically selected when the component loses focus. This behavior is useful for WAI-ARIA compliance and provides a better user experience for keyboard navigation.

When set to `false`, the component will not select any option when losing focus, requiring users to explicitly select options using Enter, Space, or mouse clicks.

::: info
This prop only affects the behavior when the dropdown menu is open and an option is focused. If no option is focused or the menu is closed, no selection will occur regardless of this prop's value.
:::
22 changes: 0 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions playground/PlaygroundLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const links = [
{ value: "/controlled-menu", label: "Controlled Menu" },
{ value: "/menu-header", label: "Menu Header" },
{ value: "/menu-positioning", label: "Menu Positioning" },
{ value: "/keyboard-navigation", label: "Keyboard Navigation" },
];

const router = useRouter();
Expand Down
Loading