diff --git a/microfrontends/SignDocuments/src/Component/WidgetComponent/placeholderType.js b/microfrontends/SignDocuments/src/Component/WidgetComponent/placeholderType.js index fd6d56e39..04c48e518 100644 --- a/microfrontends/SignDocuments/src/Component/WidgetComponent/placeholderType.js +++ b/microfrontends/SignDocuments/src/Component/WidgetComponent/placeholderType.js @@ -9,6 +9,13 @@ function PlaceholderType(props) { props.setDraggingEnabled(true); }; + // const formatDate = (dateString) => { + // const date = new Date(dateString); + // const updateDate = date.toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric' }) + // console.log("update",updateDate) + // return updateDate; + // }; + useEffect(() => { const senderUser = localStorage.getItem(`Extand_Class`); const jsonSender = JSON.parse(senderUser); @@ -298,7 +305,8 @@ function PlaceholderType(props) { type="date" disabled={props.isPlaceholder ? true : false} onBlur={handleInputBlur} - value={props.selectDate && props.selectDate} + // value={props.selectDate && formatDate(props.selectDate)} + // value={props.selectDate && props.selectDate} onChange={(e) => { props.setSelectDate(e.target.value); onChangeInput( diff --git a/microfrontends/SignDocuments/src/utils/Utils.js b/microfrontends/SignDocuments/src/utils/Utils.js index 193752e34..bd3864a03 100644 --- a/microfrontends/SignDocuments/src/utils/Utils.js +++ b/microfrontends/SignDocuments/src/utils/Utils.js @@ -245,7 +245,10 @@ export const getWidgetType = ( "0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.18)", marginLeft: marginLeft && `${marginLeft}px`, background: - selectWidgetType === item.type && backgroundColor && backgroundColor + selectWidgetType === item.type && + backgroundColor && + backgroundColor, + userSelect: "none" }} >