Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(select): hideEmptyContent API #4219

Merged
Prev Previous commit
Next Next commit
fix(select): hideEmptyContent default false
  • Loading branch information
Peterl561 committed Dec 4, 2024
commit ff37d1b49b221300dd6eda9654e54903483f56fe
6 changes: 3 additions & 3 deletions packages/components/select/src/use-select.ts
Original file line number Diff line number Diff line change
@@ -167,8 +167,8 @@ export type UseSelectProps<T> = Omit<
*/
isVirtualized?: boolean;
/**
* Whether the listbox should be openable when there are no items.
* @default true
* Whether the listbox will be prevented from opening when there are no items.
* @default false
*/
hideEmptyContent?: boolean;
};
@@ -214,7 +214,7 @@ export function useSelect<T extends object>(originalProps: UseSelectProps<T>) {
onClose,
className,
classNames,
hideEmptyContent = true,
hideEmptyContent = false,
...otherProps
} = props;