Skip to content

[EuiPopover] closePopover isn't called on outside click when popover is in opened state from initial render #4460

@Dosant

Description

@Dosant

Version: 31.4.0

Description:
closePopover doesn't emit on outside click when on initial render popover receives isOpen prop.

Reproduction: https://codesandbox.io/s/hungry-fog-zxc7z?file=/index.js

Current behavior:
Clicking outside the popover which was opened during the initial render doesn't call closePopover.
If to close it using the button and open it again, then click outside works

Expected behavior:
Clicking outside the popover should call closePopover even if the popover was opened during the initial render.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions