Skip to content

[Bug]: dismissing an overlay twice, quickly, breaks the overlay in question #2646

@hunterloftis

Description

@hunterloftis

Code of conduct

  • I agree to follow this project's code of conduct.

Impacted component(s)

overlay,dialog

Expected behavior

Pressing escape N times, or clicking on an underlay N times, no matter how fast, does not impact the future behavior of overlays.

Actual behavior

Pressing escape twice or clicking on an underlay twice, quickly, can prevent future overlays from opening.

Screenshots

overlay-esc-bug.mov

What browsers are you seeing the problem in?

No response

How can we reproduce this issue?

  1. Go to https://opensource.adobe.com/spectrum-web-components/components/dialog-wrapper/
  2. Click "toggle dialog"
  3. Double-click on its underlay quickly
  4. Click "toggle dialog"
  5. Notice that no dialog opens

Sample code that illustrates the problem

No response

Logs taken while reproducing problem

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions