@xsolla/xui-input-phone 0.138.0 → 0.138.1
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.
- package/native/index.js +5 -2
- package/native/index.js.map +1 -1
- package/native/index.mjs +4 -2
- package/native/index.mjs.map +1 -1
- package/package.json +3 -3
- package/web/index.js +5 -2
- package/web/index.js.map +1 -1
- package/web/index.mjs +4 -2
- package/web/index.mjs.map +1 -1
package/native/index.js
CHANGED
|
@@ -427,6 +427,9 @@ var InputPrimitive = (0, import_react2.forwardRef)(
|
|
|
427
427
|
);
|
|
428
428
|
InputPrimitive.displayName = "InputPrimitive";
|
|
429
429
|
|
|
430
|
+
// ../primitives-native/src/index.tsx
|
|
431
|
+
var isWeb = false;
|
|
432
|
+
|
|
430
433
|
// src/InputPhone.tsx
|
|
431
434
|
var import_xui_core = require("@xsolla/xui-core");
|
|
432
435
|
|
|
@@ -2410,7 +2413,7 @@ var InputPhone = (0, import_react3.forwardRef)(
|
|
|
2410
2413
|
}
|
|
2411
2414
|
}, [isDropdownOpen]);
|
|
2412
2415
|
(0, import_react3.useEffect)(() => {
|
|
2413
|
-
if (!isDropdownOpen || !
|
|
2416
|
+
if (!isDropdownOpen || !isWeb) return;
|
|
2414
2417
|
const handleClickOutside = (event) => {
|
|
2415
2418
|
const target = event.target;
|
|
2416
2419
|
if (dropdownRef.current && !dropdownRef.current.contains(target) && countryButtonRef.current && !countryButtonRef.current.contains(target)) {
|
|
@@ -2633,7 +2636,7 @@ var InputPhone = (0, import_react3.forwardRef)(
|
|
|
2633
2636
|
const flagSize = flagSizeConfig[size];
|
|
2634
2637
|
const selectorWidth = selectorWidthConfig[size];
|
|
2635
2638
|
const focusOutline = focusOutlineConfig[size];
|
|
2636
|
-
const dropdownStyles =
|
|
2639
|
+
const dropdownStyles = isWeb ? {
|
|
2637
2640
|
boxShadow: "0 4px 12px rgba(0,0,0,0.15)",
|
|
2638
2641
|
maxHeight: 240,
|
|
2639
2642
|
overflowY: "auto"
|