Skip to content

Commit

Permalink
fix chart tooltip isOpen boolean evaluation (metabase#19052)
Browse files Browse the repository at this point in the history
  • Loading branch information
daltojohnso authored Nov 22, 2021
1 parent 008ea7b commit dec0d84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default class ChartTooltip extends Component {
hovered?.element != null && document.body.contains(hovered.element);
const hasTargetEvent = hovered?.event != null;

const isOpen = (rows.length > 0 && hasTargetElement) || hasTargetEvent;
const isOpen = rows.length > 0 && (hasTargetElement || hasTargetEvent);

let target;
if (hasTargetElement) {
Expand Down

0 comments on commit dec0d84

Please sign in to comment.