Skip to content

Commit

Permalink
fix: clear button not working
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurgeron committed Sep 17, 2024
1 parent df17b94 commit b1ba75b
Showing 1 changed file with 13 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,23 +342,21 @@ export function SearchInput({
}
}}
>
{isFocused && value?.length ? (
{(isFocused || !openDropdown) && !!value?.length ? (
<>
<Input.Slot side="right">
{!!value?.length && (
<Tooltip content="Submit">
<IconButton
type="submit"
aria-label="Submit"
icon={IconCheck}
iconColor="text-brand"
variant="link"
className="!ml-0 tablet:ml-2"
isLoading={pending}
onClick={handleSubmit}
/>
</Tooltip>
)}
<Tooltip content="Submit">
<IconButton
type="submit"
aria-label="Submit"
icon={IconCheck}
iconColor="text-brand"
variant="link"
className="!ml-0 tablet:ml-2"
isLoading={pending}
onClick={handleSubmit}
/>
</Tooltip>
<IconButton
aria-label="Clear"
icon={IconX}
Expand Down

0 comments on commit b1ba75b

Please sign in to comment.