Skip to content

Commit 8626c5a

Browse files
qiltoDaniel HoLFDanLudannify
authored
Omit disallowEmptySelection from props (#2652)
Co-authored-by: Daniel Ho <[email protected]> Co-authored-by: Daniel Lu <[email protected]> Co-authored-by: Daniel Lu <[email protected]> Co-authored-by: Danni <[email protected]>
1 parent 4312f19 commit 8626c5a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/@react-stately/list/src/useSingleSelectListState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {ListState, useListState} from './useListState';
1616
import {Node} from '@react-types/shared';
1717
import {useControlledState} from '@react-stately/utils';
1818

19-
export interface SingleSelectListProps<T> extends CollectionBase<T>, SingleSelection {
19+
export interface SingleSelectListProps<T> extends CollectionBase<T>, Omit<SingleSelection, 'disallowEmptySelection'> {
2020
/** Filter function to generate a filtered list of nodes. */
2121
filter?: (nodes: Iterable<Node<T>>) => Iterable<Node<T>>,
2222
/** @private */

packages/@react-types/combobox/src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {AsyncLoadable, CollectionBase, DOMProps, FocusableProps, HelpTextProps,
1414

1515
export type MenuTriggerAction = 'focus' | 'input' | 'manual';
1616

17-
export interface ComboBoxProps<T> extends CollectionBase<T>, SingleSelection, InputBase, TextInputBase, Validation, FocusableProps, LabelableProps, HelpTextProps {
17+
export interface ComboBoxProps<T> extends CollectionBase<T>, Omit<SingleSelection, 'disallowEmptySelection'>, InputBase, TextInputBase, Validation, FocusableProps, LabelableProps, HelpTextProps {
1818
/** The list of ComboBox items (uncontrolled). */
1919
defaultItems?: Iterable<T>,
2020
/** The list of ComboBox items (controlled). */

packages/@react-types/select/src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import {
2929
Validation
3030
} from '@react-types/shared';
3131

32-
export interface SelectProps<T> extends CollectionBase<T>, AsyncLoadable, Omit<InputBase, 'isReadOnly'>, Validation, HelpTextProps, LabelableProps, TextInputBase, SingleSelection, FocusableProps {
32+
export interface SelectProps<T> extends CollectionBase<T>, AsyncLoadable, Omit<InputBase, 'isReadOnly'>, Validation, HelpTextProps, LabelableProps, TextInputBase, Omit<SingleSelection, 'disallowEmptySelection'>, FocusableProps {
3333
/** Sets the open state of the menu. */
3434
isOpen?: boolean,
3535
/** Sets the default open state of the menu. */

0 commit comments

Comments
 (0)