fix: label widgets hint, date default format issue

This commit is contained in:
RaktimaNXG
2024-03-08 16:57:43 +05:30
parent cd2be94d29
commit f4090c0c61
2 changed files with 4 additions and 1 deletions
@@ -74,7 +74,9 @@ function Placeholder(props) {
const newDate = moment(milliseconds).format(dateFormat);
const dateObj = {
date: newDate,
format: dateFormat
format: props.pos?.options?.validation?.format
? props.pos?.options?.validation?.format
: "MM/dd/YYYY"
};
setSelectDate(dateObj);
}
@@ -755,6 +755,7 @@ function PlaceholderType(props) {
case "label":
return (
<textarea
placeholder="Enter label"
rows={1}
onChange={(e) => {
onChangeInput(