[questions][fix] fix typeahead spasm (#483)

pull/485/head
Jeff Sieu 2 years ago committed by GitHub
parent 3cc238b0ce
commit 410053425c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -47,8 +47,9 @@ export default function CreateQuestionEncounterForm({
<div> <div>
<CompanyTypeahead <CompanyTypeahead
isLabelHidden={true} isLabelHidden={true}
placeholder="Other company" placeholder="Company"
suggestedCount={3} // TODO: Fix suggestions and set count back to 3
suggestedCount={0}
// @ts-ignore TODO(questions): handle potentially null value. // @ts-ignore TODO(questions): handle potentially null value.
onSelect={({ value: company }) => { onSelect={({ value: company }) => {
setSelectedCompany(company); setSelectedCompany(company);
@ -64,8 +65,8 @@ export default function CreateQuestionEncounterForm({
<div> <div>
<LocationTypeahead <LocationTypeahead
isLabelHidden={true} isLabelHidden={true}
placeholder="Other location" placeholder="Location"
suggestedCount={3} suggestedCount={0}
// @ts-ignore TODO(questions): handle potentially null value. // @ts-ignore TODO(questions): handle potentially null value.
onSelect={(location) => { onSelect={(location) => {
setSelectedLocation(location); setSelectedLocation(location);
@ -81,8 +82,8 @@ export default function CreateQuestionEncounterForm({
<div> <div>
<RoleTypeahead <RoleTypeahead
isLabelHidden={true} isLabelHidden={true}
placeholder="Other role" placeholder="Role"
suggestedCount={3} suggestedCount={0}
// @ts-ignore TODO(questions): handle potentially null value. // @ts-ignore TODO(questions): handle potentially null value.
onSelect={({ value: role }) => { onSelect={({ value: role }) => {
setSelectedRole(role); setSelectedRole(role);

Loading…
Cancel
Save