@@ -2,12 +2,12 @@ import classNames from 'classnames';
22import * as React from 'react' ;
33import type { InternalMode , PickerRef , SelectorProps } from '../../../interface' ;
44import { isSame } from '../../../utils/dateUtil' ;
5- import PickerContext from '../../context' ;
65import type { PickerProps } from '../../SinglePicker' ;
7- import useInputProps from '../hooks/useInputProps' ;
8- import useRootProps from '../hooks/useRootProps' ;
6+ import PickerContext from '../../context' ;
97import Icon , { ClearIcon } from '../Icon' ;
108import Input , { type InputRef } from '../Input' ;
9+ import useInputProps from '../hooks/useInputProps' ;
10+ import useRootProps from '../hooks/useRootProps' ;
1111import MultipleDates from './MultipleDates' ;
1212
1313export interface SingleSelectorProps < DateType extends object = any >
@@ -99,6 +99,7 @@ function SingleSelector<DateType extends object = any>(
9999 required,
100100 'aria-required' : ariaRequired ,
101101 autoFocus,
102+ tabIndex,
102103
103104 removeIcon,
104105
@@ -178,6 +179,7 @@ function SingleSelector<DateType extends object = any>(
178179 ref = { inputRef as any }
179180 readOnly
180181 autoFocus = { autoFocus }
182+ tabIndex = { tabIndex }
181183 />
182184 < Icon type = "suffix" icon = { suffixIcon } />
183185 { showClear && < ClearIcon icon = { clearIcon } onClear = { onClear } /> }
@@ -187,6 +189,7 @@ function SingleSelector<DateType extends object = any>(
187189 ref = { inputRef }
188190 { ...getInputProps ( ) }
189191 autoFocus = { autoFocus }
192+ tabIndex = { tabIndex }
190193 suffixIcon = { suffixIcon }
191194 clearIcon = { showClear && < ClearIcon icon = { clearIcon } onClear = { onClear } /> }
192195 showActiveCls = { false }
0 commit comments