Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(react/dialogs): unnecessary listeners on modal render
Elian Doranc0d3027e654e
diff --git a/apps/client/src/widgets/react/Modal.tsx b/apps/client/src/widgets/react/Modal.tsxindex 1f020b56bf..96f41076f6 100644--- a/apps/client/src/widgets/react/Modal.tsx+++ b/apps/client/src/widgets/react/Modal.tsx@@ -71,7 +71,7 @@ export default function Modal({ children, className, size, title, header, footermodalElement.removeEventListener("hidden.bs.modal", onHidden);}};- });+ }, [ ]);}const dialogStyle: CSSProperties = {};