📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
don't close metrics visualisation dropdown on click
Blue Mouse270157b993ab
diff --git a/web/app/pages/Project/View/ViewProject.tsx b/web/app/pages/Project/View/ViewProject.tsxindex 9398cb180..4cf94ff55 100644--- a/web/app/pages/Project/View/ViewProject.tsx+++ b/web/app/pages/Project/View/ViewProject.tsx@@ -2912,16 +2912,13 @@ const ViewProject = () => {buttonClassName='!px-2.5'selectItemClassName='p-0'keyExtractor={(pair) => pair.id}- onSelect={({ id: pairID, conflicts }, e, close) => {- // For custom events, don't close the dropdown to allow interaction with nested dropdown- if (pairID === CHART_METRICS_MAPPING.customEvents) {- e?.stopPropagation()- e?.preventDefault()- return- }+ onSelect={({ id: pairID, conflicts }, e) => {+ e?.stopPropagation()+ e?.preventDefault()- switchTrafficChartMetric(pairID, conflicts)- close()+ if (pairID !== CHART_METRICS_MAPPING.customEvents) {+ switchTrafficChartMetric(pairID, conflicts)+ }}}chevron='mini'headless