mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-13 13:17:39 +02:00
fix: default date issue and remove commented code, unnecessary using useEffect
This commit is contained in:
@@ -249,7 +249,11 @@ export const addWidgetOptions = (type) => {
|
||||
case "job title":
|
||||
return { ...defaultOpt, validation: { type: "text", pattern: "" } };
|
||||
case "date":
|
||||
return { ...defaultOpt, response: getDate() };
|
||||
return {
|
||||
...defaultOpt,
|
||||
response: getDate(),
|
||||
validation: { format: "MM/dd/yyyy", type: "date-format" }
|
||||
};
|
||||
case "image":
|
||||
return defaultOpt;
|
||||
case "email":
|
||||
|
||||
Reference in New Issue
Block a user