question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ui5-dialog: block layer blocks dialog in OpenUI5

See original GitHub issue

Describe 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:

  1. Create a UI5 library, which implement a custom control for the dialog.
  2. Import the library into the UI5 app.
  3. Use custom control in view.
  4. 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. Example App - Dialog Opened 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:open
  • Created 3 years ago
  • Reactions:2
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
ignipaecommented, Sep 16, 2020

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.

1reaction
Smuxcommented, Sep 21, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found