Skip to content

[dialog] overflow: hidden gets removed when closing dialog even if another dialog is still opened #11408

@rpanichakit9541

Description

@rpanichakit9541

Check existing issues

Actual Behavior

If there are two dialogs opened, when you close the first one it immediately removes overflow: hidden from the <html> tag even though another dialog is still opened.

Expected Behavior

overflow: hidden should remain on <html> tag if there's still an opened dialog

Reproduction Sample

https://codepen.io/rpanichakit/pen/VYZgRrm?editors=1000

Reproduction Steps

  1. Open the codepen URL
  2. Inspect the HTML to see the overflow: hidden present on the <html> tag inside the iframe in codepen
  3. Close the dialog, and inspect again to see overflow: hidden is now removed, even though another dialog is still opened.

Reproduction Version

2.13.2

Relevant Info

No response

Regression?

No response

Priority impact

impact - p3 - not time sensitive

Impact

https://devtopia.esri.com/WebGIS/arcgis-metadata-editor/issues/1536

This happens in a real workflow when the main workflow is inside a dialog and then from that UI, the user can trigger another dialog like confirmation of an action.

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/calcite-ui-icons
  • @esri/eslint-plugin-calcite-components

Esri team

ArcGIS Online

Metadata

Metadata

Labels

4 - verifiedIssues that have been tested, confirmed as mitigated, and are ready to close.ArcGIS OnlineIssues logged by ArcGIS Online team members.bugBug reports for broken functionality. Issues should include a reproduction of the bug.estimate - 3A day or two of work, likely requires updates to tests.impact - p3 - not time sensitiveUser set priority impact status of p3 - not time sensitivep - mediumIssue is non core or affecting less that 60% of people using the library

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions