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: no focused entity on touch device (#1577)

Peter Chinman176de7f00855
diff --git a/js/app/packages/app/component/next-soup/create-soup-state.ts b/js/app/packages/app/component/next-soup/create-soup-state.ts
index 742a90c682..b0c8477941 100644
--- a/js/app/packages/app/component/next-soup/create-soup-state.ts
+++ b/js/app/packages/app/component/next-soup/create-soup-state.ts
@@ -11,6 +11,7 @@ import {
import { createSelectionState } from '@app/component/next-soup/selection-state';
import { SORT_CONFIGS } from '@app/component/next-soup/soup-view/sort-options';
import { isModality } from '@core/mobile/inputModality';
+import { isTouchDevice } from '@core/mobile/isTouchDevice';
import type { EntityData, WithSearch } from '@entity';
import { createMemo, createSignal } from 'solid-js';
@@ -117,6 +118,9 @@ export const createSoupState = <
// Navigation implementation
const setFocus = (index: number): NavigationResult<SoupEntity> => {
+ // On touch devices there is no concept of a "focused entity", return early
+ if (isTouchDevice()) return;
+
const result = calculateFocusItem(index);
if (result) {