Validation message is not Empty while clicking on Cancel button in Manage Employee popup from Infrastructure from project list.
This commit is contained in:
parent
28e0d615a0
commit
5cb1e55292
@ -107,7 +107,10 @@ const BuildingModel = ({
|
|||||||
className="btn-close"
|
className="btn-close"
|
||||||
data-bs-dismiss="modal"
|
data-bs-dismiss="modal"
|
||||||
aria-label="Close"
|
aria-label="Close"
|
||||||
onClick={onClose}
|
onClick={() => {
|
||||||
|
onClose();
|
||||||
|
reset(); // Call reset here
|
||||||
|
}}
|
||||||
></button>
|
></button>
|
||||||
<h5 className="text-center mb-2">
|
<h5 className="text-center mb-2">
|
||||||
Manage Buildings - {project?.name}
|
Manage Buildings - {project?.name}
|
||||||
@ -186,7 +189,10 @@ const BuildingModel = ({
|
|||||||
className="btn btn-sm btn-label-secondary"
|
className="btn btn-sm btn-label-secondary"
|
||||||
data-bs-dismiss="modal"
|
data-bs-dismiss="modal"
|
||||||
aria-label="Close"
|
aria-label="Close"
|
||||||
onClick={onClose}
|
onClick={() => {
|
||||||
|
onClose();
|
||||||
|
reset(); // Call reset here
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
Cancel
|
Cancel
|
||||||
</button>
|
</button>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user