Skip to content

Commit

Permalink
Fixes tooltip flicker
Browse files Browse the repository at this point in the history
  • Loading branch information
spong committed Jan 14, 2020
1 parent 290742c commit 23c1cc7
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 57 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -85,26 +85,26 @@ const RuleActionsOverflowComponent = ({

return (
<>
<EuiToolTip position="top" content={i18n.ALL_ACTIONS}>
<EuiPopover
anchorPosition="leftCenter"
button={
<EuiPopover
anchorPosition="leftCenter"
button={
<EuiToolTip position="top" content={i18n.ALL_ACTIONS}>
<EuiButtonIcon
iconType="boxesHorizontal"
aria-label={i18n.ALL_ACTIONS}
isDisabled={(userHasNoPermissions || rule?.immutable) ?? true}
onClick={() => setIsPopoverOpen(!isPopoverOpen)}
/>
}
closePopover={() => setIsPopoverOpen(false)}
id="ruleActionsOverflow"
isOpen={isPopoverOpen}
ownFocus={true}
panelPaddingSize="none"
>
<EuiContextMenuPanel items={actions} />
</EuiPopover>
</EuiToolTip>
</EuiToolTip>
}
closePopover={() => setIsPopoverOpen(false)}
id="ruleActionsOverflow"
isOpen={isPopoverOpen}
ownFocus={true}
panelPaddingSize="none"
>
<EuiContextMenuPanel items={actions} />
</EuiPopover>
<RuleDownloader
filename={`${i18nActions.EXPORT_FILENAME}.ndjson`}
rules={rulesToExport}
Expand Down

0 comments on commit 23c1cc7

Please sign in to comment.