From fbcdfa97cfc00f802ac298ebdcf14fd12171abd8 Mon Sep 17 00:00:00 2001 From: RaktimaNXG Date: Sat, 2 Mar 2024 11:57:35 +0530 Subject: [PATCH] fix: text input widgets issue after set default values --- .../src/Component/WidgetComponent/NameModal.js | 16 +++++++++++++--- .../src/Component/WidgetComponent/placeholder.js | 15 --------------- 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/microfrontends/SignDocuments/src/Component/WidgetComponent/NameModal.js b/microfrontends/SignDocuments/src/Component/WidgetComponent/NameModal.js index 38652f25d..5ae7cba3d 100644 --- a/microfrontends/SignDocuments/src/Component/WidgetComponent/NameModal.js +++ b/microfrontends/SignDocuments/src/Component/WidgetComponent/NameModal.js @@ -109,7 +109,8 @@ const NameModal = (props) => { required /> - {props.widgetName === "text" && ( + {(props.defaultdata?.type === "text" || + props.widgetName === "text") && ( <>
@@ -234,7 +243,8 @@ const NameModal = (props) => { })} - {props.widgetName === "text" && ( + {(props.defaultdata?.type === "text" || + props?.widgetName === "text") && (