From 0192b38194dbadcba5a0ac28e537b44691431cd8 Mon Sep 17 00:00:00 2001 From: Pawan Kumar Date: Tue, 21 May 2024 16:56:29 +0530 Subject: [PATCH] chore: add the missing isRequired prop in WDSPhoneInputWidget (#33607) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #33241 /ok-to-test tags="@tag.Anvil" > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: 1cdcec81eb8c6ee6dc038aa3c000c7ddcca08777 > Cypress dashboard url: Click here! Co-authored-by: Pawan Kumar --- .../src/widgets/wds/WDSPhoneInputWidget/component/index.tsx | 1 + app/client/src/widgets/wds/WDSPhoneInputWidget/widget/index.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/app/client/src/widgets/wds/WDSPhoneInputWidget/component/index.tsx b/app/client/src/widgets/wds/WDSPhoneInputWidget/component/index.tsx index 0a302745f0..767052f618 100644 --- a/app/client/src/widgets/wds/WDSPhoneInputWidget/component/index.tsx +++ b/app/client/src/widgets/wds/WDSPhoneInputWidget/component/index.tsx @@ -17,6 +17,7 @@ export function PhoneInputComponent(props: PhoneInputComponentProps) { errorMessage={props.errorMessage} isDisabled={props.isDisabled} isReadOnly={props.isReadOnly} + isRequired={props.isRequired} label={props.label} onChange={props.onValueChange} onFocusChange={props.onFocusChange} diff --git a/app/client/src/widgets/wds/WDSPhoneInputWidget/widget/index.tsx b/app/client/src/widgets/wds/WDSPhoneInputWidget/widget/index.tsx index fdb44fd8a2..1f21328ef2 100644 --- a/app/client/src/widgets/wds/WDSPhoneInputWidget/widget/index.tsx +++ b/app/client/src/widgets/wds/WDSPhoneInputWidget/widget/index.tsx @@ -296,6 +296,7 @@ class WDSPhoneInputWidget extends WDSBaseInputWidget< isDisabled={this.props.isDisabled} isLoading={this.props.isLoading} isReadOnly={this.props.isReadOnly} + isRequired={this.props.isRequired} label={this.props.label} onFocusChange={this.onFocusChange} onISDCodeChange={this.onISDCodeChange}