mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-25 00:52:34 +02:00
fix: on press widgets select functionality trigger issue in mobile view
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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"
|
||||
}}
|
||||
>
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user