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.

FocusTrapZone firstFocusableSelector prop is fragile #1566

@jurokapsiar

Description

@jurokapsiar

Bug Report

FocusTrapZone firstFocusableSelector prop is fragile.

  1. it is called selector, but it expects class, as it prepends the selector with .
    -> only prepend . if the string does not start with . or #
  2. it allows seting focus to elements outside of the focus trap zone
    -> if selector evaluates to something outside of the zone or to nothing, find the first focusable in the zone

Version

0.33

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