Skip to content

Commit

Permalink
Prevent event propagation on step_duration (#122039)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilioalvap authored Dec 28, 2021
1 parent 7e7319b commit 4c07aba
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* 2.0.
*/

import type { MouseEvent } from 'react';

import * as React from 'react';
import { EuiButtonEmpty, EuiPopover } from '@elastic/eui';
import { useMemo } from 'react';
Expand Down Expand Up @@ -55,6 +57,7 @@ export const StepDuration = ({

return (
<EuiPopover
onClick={(evt: MouseEvent<HTMLDivElement>) => evt.stopPropagation()}
isOpen={durationPopoverOpenIndex === step.synthetics.step?.index}
button={button}
closePopover={() => setDurationPopoverOpenIndex(null)}
Expand Down

0 comments on commit 4c07aba

Please sign in to comment.