File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ interface MergedRangePickerProps<DateType>
97
97
98
98
function InternalRangePicker < DateType > (
99
99
props : RangePickerProps < DateType > & {
100
- pickerRef : React . Ref < Picker > ;
100
+ pickerRef : React . Ref < Picker < DateType > > ;
101
101
} ,
102
102
) {
103
103
const {
@@ -126,7 +126,7 @@ function InternalRangePicker<DateType>(
126
126
onFocus,
127
127
onBlur,
128
128
} = props as MergedRangePickerProps < DateType > & {
129
- pickerRef : React . Ref < Picker > ;
129
+ pickerRef : React . Ref < Picker < DateType > > ;
130
130
} ;
131
131
132
132
const formatList = toArray (
@@ -360,7 +360,7 @@ function InternalRangePicker<DateType>(
360
360
class RangePicker < DateType > extends React . Component <
361
361
RangePickerProps < DateType >
362
362
> {
363
- pickerRef = React . createRef < HTMLInputElement > ( ) ;
363
+ pickerRef = React . createRef < Picker < DateType > > ( ) ;
364
364
365
365
focus = ( ) => {
366
366
if ( this . pickerRef . current ) {
You can’t perform that action at this time.
0 commit comments