Skip to content

Commit 89d21d0

Browse files
fix: date input validation fix
1 parent 9595937 commit 89d21d0

File tree

1 file changed

+1
-1
lines changed
  • client/packages/lowcoder/src/comps/comps/dateComp

1 file changed

+1
-1
lines changed

client/packages/lowcoder/src/comps/comps/dateComp/dateComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function validate(
121121
return { validateStatus: "error", help: props.customRule };
122122
}
123123

124-
const currentDateTime = dayjs(props.value.value, DATE_TIME_FORMAT);
124+
const currentDateTime = dayjs(dayjs(props.value.value), DATE_TIME_FORMAT);
125125

126126
if (props.required && !currentDateTime.isValid()) {
127127
return { validateStatus: "error", help: trans("prop.required") };

0 commit comments

Comments
 (0)