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: focus split on preview entity click (#1391)

Peter Chinman4cb5f1e39f02
diff --git a/js/app/packages/app/component/UnifiedListView.tsx b/js/app/packages/app/component/UnifiedListView.tsx
index 33c04eab7c..7292394778 100644
--- a/js/app/packages/app/component/UnifiedListView.tsx
+++ b/js/app/packages/app/component/UnifiedListView.tsx
@@ -1284,6 +1284,15 @@ export function UnifiedListView(props: UnifiedListViewProps) {
if (preview() && type === 'entity') {
setSelectedEntity(entity);
+ // Move browser focus to the row
+ const target = event.target;
+ if (target instanceof HTMLElement) {
+ const row = target.closest('[data-entity]');
+ if (row instanceof HTMLElement) {
+ row.focus();
+ }
+ }
+
return;
}