Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

set us as default country and force international codes

neilk17b555155bd374
diff --git a/apps/carbon/app/components/Form/PhoneInput.tsx b/apps/carbon/app/components/Form/PhoneInput.tsx
index a416bdd863..6461824ff3 100644
--- a/apps/carbon/app/components/Form/PhoneInput.tsx
+++ b/apps/carbon/app/components/Form/PhoneInput.tsx
@@ -53,6 +53,8 @@ const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps> =
flagComponent={FlagComponent}
countrySelectComponent={CountrySelect}
inputComponent={InputComponent}
+ defaultCountry="US"
+ international
value={getInputProps({ id: name, ...props }).defaultValue}
{...getInputProps({
id: name,
@@ -79,7 +81,13 @@ const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps> =
PhoneInput.displayName = "PhoneInput";
const InputComponent = React.forwardRef<HTMLInputElement, InputProps>(
- ({ className, ...props }, ref) => <Input {...props} ref={ref} />
+ ({ className, ...props }, ref) => (
+ <Input
+ className={cn("rounded-s-none rounded-e-lg", className)}
+ {...props}
+ ref={ref}
+ />
+ )
);
InputComponent.displayName = "InputComponent";