[ui][typeahead] turn off autocomplete in typeahead to prevent unwanted suggestions

pull/519/head
Yangshun Tay 2 years ago
parent d311d8dd96
commit 63b6a61ad3

@ -143,6 +143,7 @@ export default function Typeahead({
)}> )}>
<Combobox.Input <Combobox.Input
aria-describedby={hasError ? errorId : undefined} aria-describedby={hasError ? errorId : undefined}
autoComplete="nope" // "off" doesn't work as intended sometimes, so we use a random string.
className={clsx( className={clsx(
'w-full border-none py-2 pl-3 pr-10 text-[length:inherit] leading-5 focus:ring-0', 'w-full border-none py-2 pl-3 pr-10 text-[length:inherit] leading-5 focus:ring-0',
stateClasses[state].input, stateClasses[state].input,

Loading…
Cancel
Save