Skip to content

Unable to close notification using the Enter key #299

Description

@MehmetYararVX

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. Load the sandbox
  2. Click Show notification
  3. See that the close icon gets focus and turns red
  4. See that the notification is not closed after 1s (simulated keyboard event via timeout)
  5. (Optional) Simulate the click event and see that the notification gets closed after 1s

What is expected?

When close button has keyboard focus, pressing Enter on the keyboard should close the notification.

What is actually happening?

When close button has keyboard focus, pressing Enter on the keyboard does not close the notification.

Environment Info
rc-notification 4.6.0
React 18
System ALL
Browser ALL

Ref: UIEN-1752

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions