[questions][fix] forwardRef error with typeahead

pull/411/head
Jeff Sieu 3 years ago
parent 7a16fe0ad9
commit e3115f772d

@ -205,7 +205,11 @@ export default function QuestionsHomePage() {
<FilterSection <FilterSection
label="Company" label="Company"
options={companyFilterOptions} options={companyFilterOptions}
renderInput={({ onOptionChange, options, field }) => ( renderInput={({
onOptionChange,
options,
field: { ref: _, ...field },
}) => (
<Typeahead <Typeahead
{...field} {...field}
label="" label=""
@ -255,7 +259,11 @@ export default function QuestionsHomePage() {
<FilterSection <FilterSection
label="Roles" label="Roles"
options={roleFilterOptions} options={roleFilterOptions}
renderInput={({ onOptionChange, options, field }) => ( renderInput={({
onOptionChange,
options,
field: { ref: _, ...field },
}) => (
<Typeahead <Typeahead
{...field} {...field}
label="" label=""
@ -280,7 +288,11 @@ export default function QuestionsHomePage() {
<FilterSection <FilterSection
label="Location" label="Location"
options={locationFilterOptions} options={locationFilterOptions}
renderInput={({ onOptionChange, options, field }) => ( renderInput={({
onOptionChange,
options,
field: { ref: _, ...field },
}) => (
<Typeahead <Typeahead
{...field} {...field}
label="" label=""

Loading…
Cancel
Save