ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ui5-popover does not close when clicking outside of it

Open m-ignatov opened this issue 6 years ago • 3 comments

Hi colleagues, When we have a popover which opens a dialog, it seems that after the dialog has been closed, the popover cannot be closed when clicking outside of it.

To reproduce Steps to reproduce the behavior:

  1. Open a popover and click on the button 'Open Dialog'.
  2. In the dialog, click on the 'Dismiss' button to close the dialog.
  3. Now, the popover cannot be closed when clicking outside of it. However, the popover closes after pressing 'Escape' several times.

Isolated example CodeSandbox

Context

  • UI5 Web Components version: 1.0.0-rc.8

m-ignatov avatar Sep 29 '20 06:09 m-ignatov

Hello @m-ignatov

Not closing the ui5-dialog on click is the expected behaviour of the component. However, it should be closed on the first press of ESC key.

In your example, I couldn't reproduce an issue. I am attaching a video where you can see that clicking doesn't close the dialog, but once I press ESC key, the dialog is closed. On the next press of ESC, the popover is closed. ezgif com-gif-maker

fifoosid avatar Sep 29 '20 08:09 fifoosid

I think there was a misunderstanding here 😄 The issue is with the popover - when you close the dialog with the 'Dismiss' button, the popover remains open and it cannot be closed when clicking outside of it. Is this expected or I am missing something?

m-ignatov avatar Sep 29 '20 08:09 m-ignatov

The issue now is resolved 😄

fifoosid avatar Oct 01 '20 07:10 fifoosid