Skip to content

Dialog unexpectedly renders overlay when it is actually closed #2696

@pavelkornev

Description

@pavelkornev

Describe the bug
While having a Dialog component in closed state, if we trying to get a dom ref of the overlay, the overlay gets rendered (this is fine), but it also becomes unexpectedly visible with a closed dialog at the same time.

Isolated example
https://codesandbox.io/s/ui5-webcomponents-forked-r5wfq?file=/src/index.js
As it shown in this example, I try to get a staticAreaItemDomRef via public API:
https://github.com/SAP/ui5-webcomponents/blob/master/packages/base/src/UI5Element.js#L896-L901
In order to attach listener on the overlay to close Dialog component on click. It's unexpected that overlay is shown when dialog is actually closed.

Expected behavior
hidden attributed should not be removed from the overlay when getting its DOM reference.

Screenshots
Screen Shot 2021-01-16 at 22 56 39

Affected components

  • Dialog

Organization: SAP Graph

Priority: Medium

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions