[ui][typeahead] allow typeahead to be cleared

This commit is contained in:
Yangshun Tay
2022-10-30 09:23:03 +08:00
parent a103879b5c
commit f7ff20bb22
11 changed files with 27 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ type Props = Readonly<{
disabled?: boolean;
errorMessage?: string;
isLabelHidden?: boolean;
onSelect: (option: TypeaheadOption) => void;
onSelect: (option: TypeaheadOption | null) => void;
placeHolder?: string;
required?: boolean;
}>;

View File

@@ -7,7 +7,7 @@ import { JobTitleLabels } from './JobTitles';
type Props = Readonly<{
disabled?: boolean;
isLabelHidden?: boolean;
onSelect: (option: TypeaheadOption) => void;
onSelect: (option: TypeaheadOption | null) => void;
placeHolder?: string;
required?: boolean;
}>;