From 37635701f1073d445d732a1498c0a8b556d09ca3 Mon Sep 17 00:00:00 2001 From: Pawan Kumar Date: Tue, 11 Jun 2024 16:47:30 +0530 Subject: [PATCH] fix validation in phoneinput --- .../src/widgets/wds/WDSPhoneInputWidget/widget/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/src/widgets/wds/WDSPhoneInputWidget/widget/helpers.ts b/app/client/src/widgets/wds/WDSPhoneInputWidget/widget/helpers.ts index 700c4c40076c..da36616bc90f 100644 --- a/app/client/src/widgets/wds/WDSPhoneInputWidget/widget/helpers.ts +++ b/app/client/src/widgets/wds/WDSPhoneInputWidget/widget/helpers.ts @@ -6,7 +6,7 @@ import type { ISDCodeProps } from "constants/ISDCodes_v2"; import { ISDCodeOptions } from "constants/ISDCodes_v2"; export function validateInput(props: any) { - const value = props.text ?? ""; + const value = props.parsedText ?? ""; const isInvalid = "isValid" in props && !props.isValid && !!props.isDirty; const conditionalProps: any = {};