To close a popover , we usually click outside and it will close automatically. Let's say I clicked on a button outside, it will first close the popover and then you have to click again on the button to take action. Is there a way to override this behavior and once we click on an element outisde the popover,
- Close the popover
- Get action of the clicked element