Skip to content

Commit 3aadb10

Browse files
authored
Fix programmatically focusing datepicker segments on iOS (#3253)
1 parent 17faf30 commit 3aadb10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/@react-aria/datepicker/src/useDatePickerGroup.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ export function useDatePickerGroup(state: DatePickerState | DateRangePickerState
8181
};
8282

8383
let {pressProps} = usePress({
84+
preventFocusOnPress: true,
85+
allowTextSelectionOnPress: true,
8486
onPressStart(e) {
8587
if (e.pointerType === 'mouse') {
8688
focusLast();

0 commit comments

Comments
 (0)