[eric] dashboard: plain click selects the card so spawn-beside-selection fires without shift/marquee

This commit is contained in:
ciregenz
2026-07-08 23:35:01 -07:00
parent dca6008ddd
commit 3b0d3bb6a7
@@ -96,10 +96,11 @@ export function useDashboardSelection(
}
return next;
}
if (prev.has(id)) {
return new Map();
// Plain click selects the clicked card (collapsing any multi-select to it) so spawn-beside-selection actually fires; deselect = empty-canvas click or Esc.
if (prev.size === 1 && prev.has(id)) {
return prev;
}
return prev;
return new Map([[id, type]]);
});
},
[],