Bubbling before-close of dialogs & pop-overs
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
- Create a
ui5-dialog - Place a
ui5-popoverinside the dialog - Bind a listener to the dialog's
before-closeevent 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
Hi @m1trix ,
Could you please create an isolated sample that demonstrates the issue in CodeSandBox?
Best Regards, Iliana Bobeva GitHub Dispatcher
I tried to reproduce it from memory, but I could not. I'll check the exact code in Monday and I will write back.
Closing due to inactivity. You can still comment and we will reopen the issue.