fixing build issue

This commit is contained in:
AmirReza Jamali
2025-11-15 10:31:05 +03:30
parent 6bd44e78a0
commit 5e60a292f5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ function MultiSelect<T extends FieldValues>({
return;
setShow(false);
};
document.addEventListener("click", clickHandler);
document?.addEventListener("click", clickHandler);
return () => document.removeEventListener("click", clickHandler);
}, [show]);
+1 -1
View File
@@ -53,7 +53,7 @@ const ConfirmationModal: React.FC<ConfirmationModalProps> = (props) => {
};
if (isOpen) {
document.addEventListener("keydown", handleEscape);
document?.addEventListener("keydown", handleEscape);
document.body.style.overflow = "hidden";
}