Skip to content

Commit 7fbf729

Browse files
authored
fix: range picker is not supporting autocomplete property (#68)
1 parent e740373 commit 7fbf729

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/RangePicker.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export interface RangePickerSharedProps<DateType> {
7676
onBlur?: React.FocusEventHandler<HTMLInputElement>;
7777
onOk?: (dates: RangeValue<DateType>) => void;
7878
direction?: 'ltr' | 'rtl';
79+
autoComplete?: string;
7980
/** @private Internal control of active picker. Do not use since it's private usage */
8081
activePickerIndex?: 0 | 1;
8182
}
@@ -182,6 +183,7 @@ function InnerRangePicker<DateType>(props: RangePickerProps<DateType>) {
182183
order,
183184
direction,
184185
activePickerIndex,
186+
autoComplete,
185187
} = props as MergedRangePickerProps<DateType>;
186188

187189
const needConfirmButton: boolean = (picker === 'date' && !!showTime) || picker === 'time';
@@ -907,6 +909,7 @@ function InnerRangePicker<DateType>(props: RangePickerProps<DateType>) {
907909
ref={startInputRef}
908910
{...startInputProps}
909911
{...inputSharedProps}
912+
autoComplete={autoComplete}
910913
/>
911914
</div>
912915
<div className={`${prefixCls}-range-separator`} ref={separatorRef}>
@@ -929,6 +932,7 @@ function InnerRangePicker<DateType>(props: RangePickerProps<DateType>) {
929932
ref={endInputRef}
930933
{...endInputProps}
931934
{...inputSharedProps}
935+
autoComplete={autoComplete}
932936
/>
933937
</div>
934938
<div

0 commit comments

Comments
 (0)