added validation for address, user can't add more than 500 characters.

This commit is contained in:
Pramod Mahajan 2025-04-18 23:48:09 +05:30
parent 8715d8e94e
commit 62887548cf

View File

@ -62,7 +62,9 @@ const ManageProjectInfo = ( {project,handleSubmitForm, onClose} ) =>
endDate: formatDate(project?.endDate ) || currentDate,
projectStatusId: String(project?.projectStatusId || "0"),
}
},
mode:"onChange"
})
useEffect( () =>
@ -210,7 +212,7 @@ const ManageProjectInfo = ( {project,handleSubmitForm, onClose} ) =>
name="projectAddress"
className="form-control"
{...register( "projectAddress" )}
maxLength={500}
/>
</div>
{errors.projectAddress && <div className="danger-text text-start" style={{fontSize:"12px"}}>{errors.projectAddress.message}</div>}