From 82d16177bf763fe8097b4aae326793e3e21e847d Mon Sep 17 00:00:00 2001 From: Alex Cortelyou <1689668+acortelyou@users.noreply.github.com> Date: Fri, 11 Mar 2022 21:43:07 -0800 Subject: [PATCH] fix(frontend): disable autocomplete on search field (#2592) --- src/components/Layout/SearchInput/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Layout/SearchInput/index.tsx b/src/components/Layout/SearchInput/index.tsx index b842a0337..8c48fff37 100644 --- a/src/components/Layout/SearchInput/index.tsx +++ b/src/components/Layout/SearchInput/index.tsx @@ -27,6 +27,7 @@ const SearchInput: React.FC = () => { className="block w-full rounded-full border border-gray-600 bg-gray-900 bg-opacity-80 py-2 pl-10 text-white placeholder-gray-300 hover:border-gray-500 focus:border-gray-500 focus:bg-opacity-100 focus:placeholder-gray-400 focus:outline-none focus:ring-0 sm:text-base" placeholder={intl.formatMessage(messages.searchPlaceholder)} type="search" + autoComplete="off" value={searchValue} onChange={(e) => setSearchValue(e.target.value)} onFocus={() => setIsOpen(true)}