Skip to content

Commit

Permalink
feat: rename popup props to listbox props
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Jan 11, 2025
1 parent 4ccd4fd commit 9ac6e68
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/useComboBox/useComboBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export function useComboBox<TOption, TValue = TOption>(_props: Reactivify<ComboB
*/
errorMessageProps,
/**
* Props for the listbox element.
* Props for the listbox/popup element.
*/
listBoxProps,
/**
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/useSelect/useSelect.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function createSelect() {
const {
labelProps,
triggerProps,
popupProps,
listBoxProps,
errorMessageProps,
descriptionProps,
displayError,
Expand All @@ -73,7 +73,7 @@ function createSelect() {
fieldValue,
labelProps,
triggerProps,
popupProps,
listBoxProps,
errorMessageProps,
descriptionProps,
displayError,
Expand All @@ -92,7 +92,7 @@ function createSelect() {
{{ fieldValue || 'Select here' }}
</div>
<div v-bind="popupProps" popover>
<div v-bind="listBoxProps" popover>
<slot>
<template v-if="groups">
<OptionGroup v-for="group in groups" :key="group.label" :label="group.label">
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/useSelect/useSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ export function useSelect<TOption, TValue = TOption>(_props: Reactivify<SelectPr
*/
labelProps,
/**
* Props for the popup element.
* Props for the listbox/popup element.
*/
popupProps: listBoxProps,
listBoxProps,
/**
* Props for the error message element.
*/
Expand Down

0 comments on commit 9ac6e68

Please sign in to comment.