Merge pull request 'fixing build issue' (#48) from table-filter into develop

Reviewed-on: https://repo.ravanertebat.com/TM/tm_panel/pulls/48
Reviewed-by: Sina Nakhostin <s.nakhostin@ravanertebat.com>
This commit is contained in:
Sina Nakhostin
2025-11-15 10:32:56 +03:30
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";
}