Skip to content

Commit 1754fb8

Browse files
committed
updating docs
1 parent 56bdc75 commit 1754fb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-aria-components/docs/ComboBox.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ interface MyComboBoxProps<T extends object> extends Omit<ComboBoxProps<T>, 'chil
335335

336336
function MyComboBox<T extends object>({label, description, errorMessage, children, ...props}: MyComboBoxProps<T>) {
337337
return (
338-
<ComboBox {...props}>
338+
<ComboBox allowsEmptyCollection {...props}>
339339
<Label>{label}</Label>
340340
<div className="my-combobox-container">
341341
<Input />
@@ -344,7 +344,7 @@ function MyComboBox<T extends object>({label, description, errorMessage, childre
344344
{description && <Text slot="description">{description}</Text>}
345345
<FieldError>{errorMessage}</FieldError>
346346
<Popover>
347-
<ListBox>
347+
<ListBox renderEmptyState={() => <div className="my-item">No results found</div>}>
348348
{children}
349349
</ListBox>
350350
</Popover>

0 commit comments

Comments
 (0)