Left Search: Remove autocomplete

This commit is contained in:
Alexander Zinchuk 2021-06-14 02:36:20 +03:00
parent 5b7cbf7af0
commit f14add6733
2 changed files with 4 additions and 0 deletions

View File

@ -271,6 +271,7 @@ const LeftMainHeader: FC<OwnProps & StateProps & DispatchProps> = ({
focused={isSearchFocused}
isLoading={isLoading}
placeholder={searchInputPlaceholder}
autoComplete="off"
canClose={Boolean(globalSearchChatId || searchDate)}
onChange={onSearchQuery}
onReset={onReset}

View File

@ -23,6 +23,7 @@ type OwnProps = {
isLoading?: boolean;
placeholder?: string;
disabled?: boolean;
autoComplete?: string;
canClose?: boolean;
onChange: (value: string) => void;
onReset?: NoneToVoidFunction;
@ -41,6 +42,7 @@ const SearchInput: FC<OwnProps> = ({
isLoading,
placeholder,
disabled,
autoComplete,
canClose,
onChange,
onReset,
@ -112,6 +114,7 @@ const SearchInput: FC<OwnProps> = ({
className="form-control"
value={value}
disabled={disabled}
autoComplete={autoComplete}
onChange={handleChange}
onFocus={handleFocus}
onBlur={handleBlur}