diff --git a/packages/components/input-phone/index.js b/packages/components/input-phone/index.js index 1d8acaf72f..cba71b996f 100644 --- a/packages/components/input-phone/index.js +++ b/packages/components/input-phone/index.js @@ -26,8 +26,6 @@ const InputPhone = (props) => { const str = e.target.value.replace(/\s/g, ""); const el = options.find((option) => option.dialCode === str); - console.log(phoneValue); - if (e.target.value === "" || phoneValue) { setIsValid(false); setCountry((prev) => ({ ...prev, icon: InvalidFlag })); @@ -112,7 +110,7 @@ const InputPhone = (props) => { hasError={!isValid} displayProp="flex" alignItems="center" - scale={props.scale} + scaled={props.scaled} > (props.scale ? "100%" : props.theme.inputPhone.width)}; + width: ${(props) => (props.scaled ? "100%" : props.theme.inputPhone.width)}; border: 1px solid ${(props) => props.hasError ? props.theme.inputPhone.errorBorderColor diff --git a/packages/components/text-input/text-input.stories.js b/packages/components/text-input/text-input.stories.js index 0ea3cee853..20733f05d3 100644 --- a/packages/components/text-input/text-input.stories.js +++ b/packages/components/text-input/text-input.stories.js @@ -45,7 +45,7 @@ Default.args = { isReadOnly: false, hasError: false, hasWarning: false, - scale: false, + scaled: false, autoComplete: "off", tabIndex: 1, withBorder: true,