Skip to content
Snippets Groups Projects
Unverified Commit 09c56567 authored by Tom Robinson's avatar Tom Robinson
Browse files

Disable esc to dismiss aggregation popover

parent 89960b9b
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ export default class Popover extends Component {
_popoverComponent() {
return (
<OnClickOutsideWrapper handleDismissal={this.handleDismissal}>
<OnClickOutsideWrapper handleDismissal={this.handleDismissal} dismissOnEscape={this.props.dismissOnEscape} dismissOnClickOutside={this.props.dismissOnClickOutside}>
<div id={this.props.id} className={cx("PopoverBody", { "PopoverBody--withArrow": this.props.hasArrow }, this.props.className)}>
{ typeof this.props.children === "function" ?
this.props.children()
......
......@@ -98,6 +98,7 @@ export default class AggregationWidget extends Component {
className="FilterPopover"
isInitiallyOpen={true}
onClose={this.close}
dismissOnEscape={false} // disable for expression editor
>
<AggregationPopover
aggregation={aggregation}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment