Skip to content

Commit 035f262

Browse files
committed
Fix close popover from active chart
1 parent a19b5a8 commit 035f262

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/ExplorerActiveChartButton/ExplorerActiveChartButton.react.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default class ExplorerActiveChartButton extends React.Component {
4848
if (this.state.open && this.parentNode && !this.parentNode.contains(e.target)) {
4949
// Click target is not inside the configuration dropdown
5050
if (e.target.parentNode && !e.target.parentNode.className.match('menu'))
51-
this.handleDismiss() // Close picker
51+
this.handleClosePopover() // Close picker
5252
}
5353
}
5454

@@ -91,6 +91,10 @@ export default class ExplorerActiveChartButton extends React.Component {
9191
});
9292
}
9393

94+
handleClosePopover() {
95+
this.setState({ open: false });
96+
}
97+
9498
renderButton() {
9599
let checkMark = null;
96100
let color = '#343445';

0 commit comments

Comments
 (0)