From 78a78916c712c8e75b2c1eabe6819a22c84dbd74 Mon Sep 17 00:00:00 2001 From: xueqingxiao Date: Tue, 12 May 2020 14:02:28 +0800 Subject: [PATCH] fix: range picker is not supporting autocomplete property --- src/RangePicker.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/RangePicker.tsx b/src/RangePicker.tsx index 09b9f17e2..28aea0d88 100644 --- a/src/RangePicker.tsx +++ b/src/RangePicker.tsx @@ -76,6 +76,7 @@ export interface RangePickerSharedProps { onBlur?: React.FocusEventHandler; onOk?: (dates: RangeValue) => void; direction?: 'ltr' | 'rtl'; + autoComplete?: string; /** @private Internal control of active picker. Do not use since it's private usage */ activePickerIndex?: 0 | 1; } @@ -182,6 +183,7 @@ function InnerRangePicker(props: RangePickerProps) { order, direction, activePickerIndex, + autoComplete, } = props as MergedRangePickerProps; const needConfirmButton: boolean = (picker === 'date' && !!showTime) || picker === 'time'; @@ -907,6 +909,7 @@ function InnerRangePicker(props: RangePickerProps) { ref={startInputRef} {...startInputProps} {...inputSharedProps} + autoComplete={autoComplete} />
@@ -929,6 +932,7 @@ function InnerRangePicker(props: RangePickerProps) { ref={endInputRef} {...endInputProps} {...inputSharedProps} + autoComplete={autoComplete} />