Skip to content

Commit 4a39740

Browse files
authored
fix: SingleSelectListState.selectedItem type should be nullable (#6565)
1 parent 59136f7 commit 4a39740

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface SingleSelectListState<T> extends ListState<T> {
3030
setSelectedKey(key: Key | null): void,
3131

3232
/** The value of the currently selected item. */
33-
readonly selectedItem: Node<T>
33+
readonly selectedItem: Node<T> | null
3434
}
3535

3636
/**

0 commit comments

Comments
 (0)