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

Affected components
Organization: SAP Graph
Priority: Medium
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
staticAreaItemDomRefvia 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
Dialogcomponent on click. It's unexpected that overlay is shown when dialog is actually closed.Expected behavior
hiddenattributed should not be removed from the overlay when getting its DOM reference.Screenshots

Affected components
Organization: SAP Graph
Priority: Medium