From 8c9542e352a1cb3b8cb1963a4744405b82aea425 Mon Sep 17 00:00:00 2001 From: Shafeeq Date: Mon, 11 Mar 2024 10:51:55 +0200 Subject: [PATCH] comments --- src/barChart.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/barChart.ts b/src/barChart.ts index 1c7fda2..28b6a6b 100644 --- a/src/barChart.ts +++ b/src/barChart.ts @@ -515,9 +515,9 @@ export class BarChart implements IVisual { } this.subSelectionHelper.setFormatMode(options.formatMode); - const shouldUpdateSubSelection = options.type & powerbi.VisualUpdateType.Data - || options.type & powerbi.VisualUpdateType.Resize - || options.type & powerbi.VisualUpdateType.FormattingSubSelectionChange; + const shouldUpdateSubSelection = options.type & (powerbi.VisualUpdateType.Data + | powerbi.VisualUpdateType.Resize + | powerbi.VisualUpdateType.FormattingSubSelectionChange); if (this.formatMode && shouldUpdateSubSelection) { this.subSelectionHelper.updateOutlinesFromSubSelections(options.subSelections, true); } @@ -552,7 +552,7 @@ export class BarChart implements IVisual { .then((ids: ISelectionId[]) => { this.syncSelectionState(barSelectionMerged, ids); }); - (event).stopPropagation(); + event.stopPropagation(); } }); }