@thecb/components 10.9.0-beta.4 → 10.9.0-beta.6
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/dist/index.cjs.js +12 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -14
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/form-layouts/FormInput.js +8 -8
- package/src/components/molecules/address-form/AddressForm.js +1 -1
- package/src/components/molecules/phone-form/PhoneForm.js +1 -1
package/package.json
CHANGED
|
@@ -229,14 +229,14 @@ const FormInput = ({
|
|
|
229
229
|
autoComplete={autocompleteValue}
|
|
230
230
|
required={isRequired}
|
|
231
231
|
// Additional handler to detect autofilled values
|
|
232
|
-
{...(autocompleteValue && {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
})}
|
|
232
|
+
// {...(autocompleteValue && {
|
|
233
|
+
// onFocus: e => {
|
|
234
|
+
// if (!isFocused) {
|
|
235
|
+
// setValue(e.target?.value);
|
|
236
|
+
// setIsFocused(true);
|
|
237
|
+
// }
|
|
238
|
+
// }
|
|
239
|
+
// })}
|
|
240
240
|
{...props}
|
|
241
241
|
/>
|
|
242
242
|
) : (
|
|
@@ -39,7 +39,7 @@ const PhoneForm = ({
|
|
|
39
39
|
field={fields.phone}
|
|
40
40
|
fieldActions={actions.fields.phone}
|
|
41
41
|
showErrors={showErrors}
|
|
42
|
-
|
|
42
|
+
formatter={createFormat(phoneFormats, formatDelimiter)}
|
|
43
43
|
onKeyUp={e => e.key === "Enter" && handleSubmit(e)}
|
|
44
44
|
autocompleteValue="tel-national"
|
|
45
45
|
dataQa="Phone number"
|