mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[ML] DF Analytics map: deselect node after node action or flyout close (#97922)
* deselect node after node action or flyout close * remove unnecessary wrapping function for deselect
This commit is contained in:
parent
dc8786604a
commit
2f25047cbd
1 changed files with 4 additions and 6 deletions
|
@ -249,6 +249,9 @@ export const Controls: FC<Props> = React.memo(
|
|||
icon="branch"
|
||||
onClick={() => {
|
||||
getNodeData({ id: nodeLabel, type: nodeType });
|
||||
if (cy) {
|
||||
cy.elements().unselect();
|
||||
}
|
||||
setShowFlyout(false);
|
||||
setPopover(false);
|
||||
}}
|
||||
|
@ -264,12 +267,7 @@ export const Controls: FC<Props> = React.memo(
|
|||
|
||||
return (
|
||||
<EuiPortal>
|
||||
<EuiFlyout
|
||||
ownFocus
|
||||
size="m"
|
||||
onClose={() => setShowFlyout(false)}
|
||||
data-test-subj="mlAnalyticsJobMapFlyout"
|
||||
>
|
||||
<EuiFlyout ownFocus size="m" onClose={deselect} data-test-subj="mlAnalyticsJobMapFlyout">
|
||||
<EuiFlyoutHeader>
|
||||
<EuiFlexGroup direction="column" gutterSize="xs">
|
||||
<EuiFlexItem grow={false}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue