Left Search: Remove autocomplete
This commit is contained in:
parent
5b7cbf7af0
commit
f14add6733
@ -271,6 +271,7 @@ const LeftMainHeader: FC<OwnProps & StateProps & DispatchProps> = ({
|
|||||||
focused={isSearchFocused}
|
focused={isSearchFocused}
|
||||||
isLoading={isLoading}
|
isLoading={isLoading}
|
||||||
placeholder={searchInputPlaceholder}
|
placeholder={searchInputPlaceholder}
|
||||||
|
autoComplete="off"
|
||||||
canClose={Boolean(globalSearchChatId || searchDate)}
|
canClose={Boolean(globalSearchChatId || searchDate)}
|
||||||
onChange={onSearchQuery}
|
onChange={onSearchQuery}
|
||||||
onReset={onReset}
|
onReset={onReset}
|
||||||
|
|||||||
@ -23,6 +23,7 @@ type OwnProps = {
|
|||||||
isLoading?: boolean;
|
isLoading?: boolean;
|
||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
|
autoComplete?: string;
|
||||||
canClose?: boolean;
|
canClose?: boolean;
|
||||||
onChange: (value: string) => void;
|
onChange: (value: string) => void;
|
||||||
onReset?: NoneToVoidFunction;
|
onReset?: NoneToVoidFunction;
|
||||||
@ -41,6 +42,7 @@ const SearchInput: FC<OwnProps> = ({
|
|||||||
isLoading,
|
isLoading,
|
||||||
placeholder,
|
placeholder,
|
||||||
disabled,
|
disabled,
|
||||||
|
autoComplete,
|
||||||
canClose,
|
canClose,
|
||||||
onChange,
|
onChange,
|
||||||
onReset,
|
onReset,
|
||||||
@ -112,6 +114,7 @@ const SearchInput: FC<OwnProps> = ({
|
|||||||
className="form-control"
|
className="form-control"
|
||||||
value={value}
|
value={value}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
|
autoComplete={autoComplete}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
onFocus={handleFocus}
|
onFocus={handleFocus}
|
||||||
onBlur={handleBlur}
|
onBlur={handleBlur}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user