Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Dialog: can't close if not focused #1709

@layershifter

Description

@layershifter

Bug Report

Steps

  1. Go to Dialog examples: https://stardust-ui.github.io/react/components/dialog
  2. Open any Dialog
  3. Click inside of it, on a header for example
  4. Press Escape key

Expected Result

Dialog is closed

Actual Result

Dialog is open because focus was moved to body while we have an event handler on Dialog root

Version

0.34.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilityAll the Accessibility tasks and bugs should be tagged with this.vstsPaired with ticket in vsts

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions