mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
# Backport This will backport the following commits from `main` to `8.9`: - [[Security Solution][Bug] Fix legacy showTopN popover actions (#165099)](https://github.com/elastic/kibana/pull/165099) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Sergi Massaneda","email":"sergi.massaneda@elastic.co"},"sourceCommit":{"committedDate":"2023-08-29T15:16:09Z","message":"[Security Solution][Bug] Fix legacy showTopN popover actions (#165099)\n\n## Summary\r\n\r\nFixes: https://github.com/elastic/kibana/issues/164800\r\n\r\nThe bug was caused by the popover closing before the actions were able\r\nto execute.\r\nSince all action executions are async, closing the popover at the end of\r\nthe event loop (using `setTimeout`) is enough to allow the action to\r\nexecute properly before the showTopN popover is closed.\r\n\r\n### Demo\r\n\r\n\r\ne427a81f
-17ed-436c-89b3-903a94632d70","sha":"625b6f752e26b141bbaa8b48caa298d4c76177b3","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Threat Hunting","Team:Threat Hunting:Explore","v8.10.0","v8.11.0","v8.9.2"],"number":165099,"url":"https://github.com/elastic/kibana/pull/165099","mergeCommit":{"message":"[Security Solution][Bug] Fix legacy showTopN popover actions (#165099)\n\n## Summary\r\n\r\nFixes: https://github.com/elastic/kibana/issues/164800\r\n\r\nThe bug was caused by the popover closing before the actions were able\r\nto execute.\r\nSince all action executions are async, closing the popover at the end of\r\nthe event loop (using `setTimeout`) is enough to allow the action to\r\nexecute properly before the showTopN popover is closed.\r\n\r\n### Demo\r\n\r\n\r\ne427a81f
-17ed-436c-89b3-903a94632d70","sha":"625b6f752e26b141bbaa8b48caa298d4c76177b3"}},"sourceBranch":"main","suggestedTargetBranches":["8.10","8.9"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/165099","number":165099,"mergeCommit":{"message":"[Security Solution][Bug] Fix legacy showTopN popover actions (#165099)\n\n## Summary\r\n\r\nFixes: https://github.com/elastic/kibana/issues/164800\r\n\r\nThe bug was caused by the popover closing before the actions were able\r\nto execute.\r\nSince all action executions are async, closing the popover at the end of\r\nthe event loop (using `setTimeout`) is enough to allow the action to\r\nexecute properly before the showTopN popover is closed.\r\n\r\n### Demo\r\n\r\n\r\ne427a81f
-17ed-436c-89b3-903a94632d70","sha":"625b6f752e26b141bbaa8b48caa298d4c76177b3"}},{"branch":"8.9","label":"v8.9.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Sergi Massaneda <sergi.massaneda@elastic.co>
This commit is contained in:
parent
d098dee68c
commit
1547c63cc9
1 changed files with 3 additions and 1 deletions
|
@ -93,7 +93,9 @@ export const WithHoverActions = React.memo<Props>(
|
|||
setShowHoverContent(false);
|
||||
|
||||
if (onCloseRequested != null) {
|
||||
onCloseRequested();
|
||||
setTimeout(() => {
|
||||
onCloseRequested();
|
||||
});
|
||||
}
|
||||
}, [onCloseRequested]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue