Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(properties): stop propagation for edit property click-outside (#1656)

Seamus45a85b603034
diff --git a/js/app/packages/core/component/Properties/component/modal/EditPropertyValueModal.tsx b/js/app/packages/core/component/Properties/component/modal/EditPropertyValueModal.tsx
index fae596dfe4..050b81413b 100644
--- a/js/app/packages/core/component/Properties/component/modal/EditPropertyValueModal.tsx
+++ b/js/app/packages/core/component/Properties/component/modal/EditPropertyValueModal.tsx
@@ -205,7 +205,13 @@ export function EditPropertyValueModal(props: PropertyEditorProps) {
return (
<ScopedPortal scope="local">
- <div class="fixed inset-0 z-modal" onClick={handleClose}>
+ <div
+ class="fixed inset-0 z-modal"
+ onClick={(e) => {
+ e.stopPropagation();
+ handleClose();
+ }}
+ >
<div
ref={mergeRefs((ref) => {
modalRef = ref;