Skip to content

Commit a0f0604

Browse files
wdsjohnJohn SvenssonLFDanLureidbarber
authored
add allowsEmptyCollection property to interface (#5842)
Co-authored-by: John Svensson <john.svensson@btwentyfour.com> Co-authored-by: Daniel Lu <dl1644@gmail.com> Co-authored-by: Reid Barber <reid@reidbarber.com>
1 parent 98477ac commit a0f0604

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-aria-components/src/ComboBox.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ export interface ComboBoxProps<T extends object> extends Omit<AriaComboBoxProps<
5656
* When `allowsCustomValue` is `true`, this option does not apply and the text is always submitted.
5757
* @default 'key'
5858
*/
59-
formValue?: 'text' | 'key'
59+
formValue?: 'text' | 'key',
60+
/** Whether the combo box allows the menu to be open when the collection is empty. */
61+
allowsEmptyCollection?: boolean
6062
}
6163

6264
export const ComboBoxContext = createContext<ContextValue<ComboBoxProps<any>, HTMLDivElement>>(null);

0 commit comments

Comments
 (0)