@@ -665,6 +666,18 @@ document.addEventListener('DOMContentLoaded', function() {
// teams that never logged on Project X.)
if (key === 'projects') applyCrossFilter('projects');
if (key === 'teams') applyCrossFilter('teams');
+
+ // Auto-open the Choices.js dropdown so options are visible
+ // immediately — the pill click means "show me the list." Without
+ // this, the user has to click the search input first, which feels
+ // like an extra step. Deferred one tick so it runs AFTER any
+ // cross-filter destroy/recreate above has settled.
+ if (key === 'projects' && projectsChoices) {
+ setTimeout(function() { projectsChoices.showDropdown(true); }, 0);
+ }
+ if (key === 'teams' && teamsChoices) {
+ setTimeout(function() { teamsChoices.showDropdown(true); }, 0);
+ }
}
// --- Pill click: toggle popover ---