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.

chore(properties): clear search text when selecting entity in multiselect (#2652)

gbirman555c827fd264
diff --git a/js/app/packages/core/component/Properties/component/modal/shared/PropertyEntitySelector.tsx b/js/app/packages/core/component/Properties/component/modal/shared/PropertyEntitySelector.tsx
index 3ef5f7d0ac..58919fe758 100644
--- a/js/app/packages/core/component/Properties/component/modal/shared/PropertyEntitySelector.tsx
+++ b/js/app/packages/core/component/Properties/component/modal/shared/PropertyEntitySelector.tsx
@@ -344,7 +344,8 @@ export function PropertyEntitySelector(props: EntityInputProps) {
if (!props.config.isMultiSelect && props.onClose) {
props.onClose();
} else if (props.config.isMultiSelect && searchInputRef) {
- // Keep input focused when multiselect is enabled
+ setInputValue('');
+ setSearchTerm('');
setTimeout(() => searchInputRef.focus(), 0);
}
};
@@ -362,6 +363,8 @@ export function PropertyEntitySelector(props: EntityInputProps) {
if (!props.config.isMultiSelect && props.onClose) {
props.onClose();
} else if (props.config.isMultiSelect && searchInputRef) {
+ setInputValue('');
+ setSearchTerm('');
setTimeout(() => searchInputRef.focus(), 0);
}
};