diff --git a/core/templates/core/report.html b/core/templates/core/report.html index 516aac7..177f233 100644 --- a/core/templates/core/report.html +++ b/core/templates/core/report.html @@ -72,7 +72,8 @@ (optional) -
+
Leave blank for a single month
@@ -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 ---