@opexa/portal-components 0.0.887 → 0.0.888
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -38,7 +38,6 @@ export const MobileNumberField = ({ enabledCountries, mobileNumber, onMobileNumb
|
|
|
38
38
|
}, className: "rounded-md border border-border-primary bg-background bg-bg-primary px-3 py-2 shadow-xs transition-colors placeholder:text-text-placeholder hover:border-border-hover focus:border-border-brand focus:border-border-focus focus:shadow-brand-xs focus:outline-none", children: _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(selectedCountry.flag, { className: "size-5" }), _jsx("span", { children: selectedCountry.areaCode }), _jsx(Popover.Indicator, { children: _jsx(ChevronDownIcon, {}) })] }) }), _jsx(Popover.Positioner, { className: "w-full", children: _jsx(Popover.Content, { children: _jsx(Popover.Description, { children: _jsxs(Combobox.Root, { collection: countriesCollection, positioning: {
|
|
39
39
|
sameWidth: true,
|
|
40
40
|
}, value: [selectedCountry.code], onValueChange: (details) => {
|
|
41
|
-
console.log('onValueChange?');
|
|
42
41
|
if (details.value && details.value.length > 0) {
|
|
43
42
|
setSelectedCountry(getCountryDetails(details.value[0]));
|
|
44
43
|
setAreaCode(getCountryDetails(details.value[0]).areaCode);
|
|
@@ -46,10 +45,8 @@ export const MobileNumberField = ({ enabledCountries, mobileNumber, onMobileNumb
|
|
|
46
45
|
setIsPopoverOpen(false);
|
|
47
46
|
}
|
|
48
47
|
}, inputValue: search, onInputValueChange: (details) => {
|
|
49
|
-
console.log('onInputValueChange?');
|
|
50
48
|
setSearch(details.inputValue);
|
|
51
49
|
}, open: isPopoverOpen, onOpenChange: (details) => {
|
|
52
|
-
console.log('onOpenChange?');
|
|
53
50
|
if (isPopoverOpen && !details.open) {
|
|
54
51
|
return;
|
|
55
52
|
}
|