Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Shafeeq committed Mar 11, 2024
1 parent 69b0f44 commit 8c9542e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/barChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -552,7 +552,7 @@ export class BarChart implements IVisual {
.then((ids: ISelectionId[]) => {
this.syncSelectionState(barSelectionMerged, ids);
});
(<Event>event).stopPropagation();
event.stopPropagation();
}
});
}
Expand Down

0 comments on commit 8c9542e

Please sign in to comment.