ui5-dialog: block layer blocks dialog in OpenUI5
See original GitHub issueDescribe the bug
When opening a ui5-dialog
in OpenUI5 the block layer blocks the actual dialog. If you have controls inside of it, you can still navigate and interact with your keyboard, but you cannot target it with your mouse.
To reproduce Steps to reproduce the behavior:
- Create a UI5 library, which implement a custom control for the dialog.
- Import the library into the UI5 app.
- Use custom control in view.
- Write a controller, which opens the dialog.
Isolated example Code Sandbox Example
Expected behavior The dialog should be in front of the block layer and you should be able to interact with it by using your mouse.
Screenshots If applicable, add screenshots to help explain your problem. More Examples on imgur
Context
- UI5 Web Components version: 1.0.0-rc.8 (latest version)
- OS/Platform: Windows
- Browser (if relevant): {…}
- Other information:
- UI5 version: 1.80.0 (latest)
Affected components (if known)
Log output / Any errors in the console no error messages
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:9 (1 by maintainers)
Top Results From Across the Web
sap.m.Dialog - API Reference - Demo Kit - SAPUI5 SDK
The Dialog control is used to prompt the user for an action or a confirmation. ... it is the only focused UI element...
Read more >Close UI5 Dialog when clicked outside - Stack Overflow
here how I solved it (here is your updated openDialog() function. ... if(oEvent.target.id === "sap-ui-blocklayer-popup"){ sap.ui.getCore().
Read more >@ui5/webcomponents-theme-base: Versions | Openbase
ui5-dialog : fix aria-label text screen reading (#3936) (622344d), closes #3778 ... ui5-popup: prevent focus on elements below block layer (#2800) (2ad3f4b), ...
Read more >Dialog - UI5 Web Components - SAP
The ui5-dialog interrupts the current app processing as it is the only focused UI element and the main screen is dimmed/blocked. The dialog...
Read more >Adding Dialog in SAPUI5 screen - SAP Community
Hi, I am trying to create the dialog view in my SAPUI5 screen. At the bottom of my screen i am having a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, I can confirm this as well. Basically, this happens as soon as the dialog is created from within the xml view. When creating the dialog within a javascript function, it works as expected.
We also found out that this issue occurs as well when you want to open a UI5 web component dialog while a SAPUI5 dialog is opened. The UI5 Web component dialog is opening but we are not able to focus it via cursor. We assume that the block layer of the SAPUI5 dialog is causing this issue. Note: This also happens when opening the UI5 Web component dialog via JS and not XML.