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

This commit is contained in:
Yangshun Tay
2022-11-05 19:33:50 +08:00
parent d311d8dd96
commit 63b6a61ad3

View File

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