Skip to content

Commit

Permalink
fix: CommandInput to stay on top of the popover (#47)
Browse files Browse the repository at this point in the history
Since there to many countries is better for the search input to sty on top of the popover where we select the country
  • Loading branch information
Mr-Vipi authored Nov 3, 2024
1 parent 0484cf1 commit ffd4bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/ui/phone-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ const CountrySelect = ({
</PopoverTrigger>
<PopoverContent className="w-[300px] p-0">
<Command>
<CommandInput placeholder="Search country..." />
<CommandList>
<ScrollArea className="h-72">
<CommandInput placeholder="Search country..." />
<CommandEmpty>No country found.</CommandEmpty>
<CommandGroup>
{options
Expand Down

0 comments on commit ffd4bc1

Please sign in to comment.