Skip to content

Commit

Permalink
fix(website): fix autocomplete blanking bug (#2434)
Browse files Browse the repository at this point in the history
* attempt to fix autocomplete blanking bug

* right change this time?

* Automated code formatting

---------

Co-authored-by: Loculus bot <bot@loculus.org>
  • Loading branch information
theosanderson and Loculus bot authored Aug 14, 2024
1 parent 151cc73 commit 565f6fb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ export const AutoCompleteField = ({
);

return (
<Combobox immediate value={fieldValue} onChange={(value) => setAFieldValue(field.name, value)}>
<Combobox
immediate
value={fieldValue}
onChange={(value) => setAFieldValue(field.name, value !== null ? value : '')}
>
<div className='relative'>
<ComboboxInput
className='w-full py-2 pl-3 text-sm leading-5
Expand Down

0 comments on commit 565f6fb

Please sign in to comment.