From f32d1169adb1d01da7e3495514862d7ccca7f85a Mon Sep 17 00:00:00 2001 From: Thomas Roberts Date: Wed, 27 Sep 2023 15:35:41 +0100 Subject: [PATCH] Ensure input is validated when autofilled --- .../checkout/components/text-input/validated-text-input.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/checkout/components/text-input/validated-text-input.tsx b/packages/checkout/components/text-input/validated-text-input.tsx index d1d4fd0d575..d59d7582970 100644 --- a/packages/checkout/components/text-input/validated-text-input.tsx +++ b/packages/checkout/components/text-input/validated-text-input.tsx @@ -160,6 +160,8 @@ const ValidatedTextInput = forwardRef< inputRef.current?.ownerDocument?.activeElement !== inputRef.current ) { + validateInput( true ); + const formattedValue = customFormatter( inputRef.current.value );