1
+ import { cn } from '@/utils/ui' ;
1
2
import * as React from 'react' ;
3
+ import { RiArrowDownSLine , RiCheckLine , RiEarthLine } from 'react-icons/ri' ;
2
4
import * as RPNInput from 'react-phone-number-input' ;
3
5
import flags from 'react-phone-number-input/flags' ;
4
- import { cn } from '@/utils/ui' ;
5
- import { InputPure , InputRoot , InputWrapper } from './input' ;
6
- import { Popover , PopoverContent , PopoverTrigger } from './popover' ;
7
6
import { Button } from './button' ;
8
7
import { Command , CommandEmpty , CommandGroup , CommandInput , CommandItem , CommandList } from './command' ;
8
+ import { InputPure , InputRoot , InputWrapper } from './input' ;
9
+ import { Popover , PopoverContent , PopoverTrigger } from './popover' ;
9
10
import { ScrollArea } from './scroll-area' ;
10
- import { RiArrowDownSLine , RiCheckLine , RiEarthLine } from 'react-icons/ri' ;
11
11
12
12
type PhoneInputProps = Omit < React . ComponentProps < 'input' > , 'onChange' | 'value' | 'ref' > &
13
13
Omit < RPNInput . Props < typeof RPNInput . default > , 'onChange' > & {
@@ -54,7 +54,7 @@ type CountrySelectProps = {
54
54
55
55
const CountrySelect = ( { disabled, value : selectedCountry , options : countryList , onChange } : CountrySelectProps ) => {
56
56
return (
57
- < Popover >
57
+ < Popover modal = { false } >
58
58
< PopoverTrigger asChild >
59
59
< Button
60
60
type = "button"
@@ -67,7 +67,7 @@ const CountrySelect = ({ disabled, value: selectedCountry, options: countryList,
67
67
< RiArrowDownSLine className = { cn ( '-mr-2 size-4 opacity-50' , disabled ? 'hidden' : 'opacity-100' ) } />
68
68
</ Button >
69
69
</ PopoverTrigger >
70
- < PopoverContent className = "w-[300px] rounded-lg border-t-0 p-0" >
70
+ < PopoverContent portal = { false } className = "w-[300px] rounded-lg border-t-0 p-0" >
71
71
< Command >
72
72
< CommandInput placeholder = "Search country..." />
73
73
< CommandList >
0 commit comments