fix: [Security:Explore:Users page]Add new timeline or template button dialog cannot be closed (#207232)

Closes: #205377

**Description**
Users don't get stuck on elements, dialogs can be closed by pressing
Esc.

**Preconditions**
Security -> Explore -> Users page.

**Steps to reproduce**

1.Navigate to Add new timeline or template button.
2.Press Enter.
3.Press Esc.
4.Press Tab few times.
5.Observe page.


**Changes made:**
1.  Fixed typo, method should be called
This commit is contained in:
Alexey Antonov 2025-01-22 11:22:55 +03:00 committed by GitHub
parent b0b44bbd22
commit e2c138bca1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,7 +76,7 @@ export const AddTimelineButton = React.memo<AddTimelineButtonComponentProps>(({
<EuiPopover
button={plusButton}
isOpen={isPopoverOpen}
closePopover={() => setPopover}
closePopover={() => setPopover(false)}
repositionOnScroll
>
<EuiFlexGroup alignItems="flexStart" direction="column" gutterSize="none">