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

Bubbling before-close of dialogs & pop-overs

Open m1trix opened this issue 5 years ago • 3 comments

Describe the bug When using a pop-over inside a dialog, the before-close event of the pop-over gets bubbled into the dialog itself, which causes any bound listeners to be invoked.

To reproduce

  1. Create a ui5-dialog
  2. Place a ui5-popover inside the dialog
  3. Bind a listener to the dialog's before-close event and close the pop-over element to see that the dialog's listener is invoked

Isolated example N/a

Expected behavior The event shall not be propagated above the original pop-over/dialog.

Screenshots N/a

Context

  • UI5 Web Components version: 1.0.0-rc.10
  • OS/Platform: MacOS
  • Browser (if relevant): Chrome 87.0.4280.88
  • Other information: N/a

Affected components (if known) Dialog & Popover

Log output / Any errors in the console N/a

Organization: (if applicable) SAP

Priority: (optional) (Low, Medium, High or Very High) Low

Business impact: (mandatory for "Very High") N/a

m1trix avatar Dec 17 '20 14:12 m1trix

Hi @m1trix ,

Could you please create an isolated sample that demonstrates the issue in CodeSandBox?

Best Regards, Iliana Bobeva GitHub Dispatcher

IlianaB avatar Dec 18 '20 10:12 IlianaB

I tried to reproduce it from memory, but I could not. I'll check the exact code in Monday and I will write back.

m1trix avatar Dec 19 '20 17:12 m1trix

Closing due to inactivity. You can still comment and we will reopen the issue.

ilhan007 avatar Jan 28 '21 10:01 ilhan007