Skip to content

Commit f4090c0

Browse files
fix: label widgets hint, date default format issue
1 parent cd2be94 commit f4090c0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

apps/OpenSign/src/components/pdf/Placeholder.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ function Placeholder(props) {
7474
const newDate = moment(milliseconds).format(dateFormat);
7575
const dateObj = {
7676
date: newDate,
77-
format: dateFormat
77+
format: props.pos?.options?.validation?.format
78+
? props.pos?.options?.validation?.format
79+
: "MM/dd/YYYY"
7880
};
7981
setSelectDate(dateObj);
8082
}

apps/OpenSign/src/components/pdf/PlaceholderType.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,7 @@ function PlaceholderType(props) {
755755
case "label":
756756
return (
757757
<textarea
758+
placeholder="Enter label"
758759
rows={1}
759760
onChange={(e) => {
760761
onChangeInput(

0 commit comments

Comments
 (0)