Don't setQuery on group selector component during initial render (#660)

This commit is contained in:
Marshall Polaris 2022-07-19 08:35:43 -07:00 committed by GitHub
parent a203f43142
commit 0d282a962c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,9 +53,8 @@ export function GroupSelector(props: {
nullable={true}
className={'text-sm'}
>
{({ open }) => (
{() => (
<>
{!open && setQuery('')}
<Combobox.Label className="label justify-start gap-2 text-base">
Add to Group
<InfoTooltip text="Question will be displayed alongside the other questions in the group." />