Content-Length: 258208 | pFad | http://github.com/lowcoder-org/lowcoder/commit/89d21d02a67d25d9a8f767de16f1d595a2b54dce

71 fix: date input validation fix · lowcoder-org/lowcoder@89d21d0 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/lowcoder-org/lowcoder/commit/89d21d02a67d25d9a8f767de16f1d595a2b54dce

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy