SAP / ui5-webcomponents-react

A wrapper implementation for React of the UI5 Web Components that are compliant with the SAP Fiori User Experience
https://sap.github.io/ui5-webcomponents-react/
Apache License 2.0
435 stars 97 forks source link

SelectDialog: Does not work properly inside Form or ObjectPage #5423

Closed DamyanKolev closed 8 months ago

DamyanKolev commented 8 months ago

Describe the bug

When open a SelectDialog inside a Form or ObjectPage, the dialog cannot be accessed with the mouse, only with the keyboard. Also when open the SelectDialog is positioned behind the static area and behind its parent instead of being the frontmost.

SelectDialogBug

Isolated Example

https://codesandbox.io/p/devbox/selectdialog-examples-jtnkgh?file=%2Fsrc%2FApp.jsx

Reproduction steps

1. 2. 3. ...

Expected Behaviour

I expect when the SelectDialog is contained in a Form or ObjectPage and once opened it should be in front of all elements and accessible by both keyboard and mouse.

SelectDialog

Screenshots or Videos

No response

UI5 Web Components for React Version

^1.23.2

UI5 Web Components Version

^1.20.1

Browser

Chrome, Edge

Operating System

Windows

Additional Context

No response

Relevant log output

No response

Declaration

Lukas742 commented 8 months ago

Hi @DamyanKolev

mounting dialogs, popovers, etc. inside other components can lead to unwanted side effects. You can find out more about this here.

I will close this issue now. If the behavior still occurs when you mount the SelectDialog outside, please let us know.