Skip to content

Modal component should disable keyboard navigation for hidden components #733

Open
@cowwoc

Description

@cowwoc

Testcase: http://jsfiddle.net/pMDsH/102/

Repro steps:

Chrome Version 33.0.1750.154 m

  1. Open http://jsfiddle.net/pMDsH/102/embedded/result/
  2. Open Developer Console
  3. Click on checkbox. Note the DOM path being logged.
  4. Click on "Add company" to trigger the modal component
  5. Click in "name". Note the DOM path being logged.
  6. Hit SHIFT-TAB. Notice that the keyboard focus is on the checkbox.
  7. Hit SPACEBAR. Notice that the checkbox gets selected/unselected in the background.

Expected behavior: When a Modal component is active, keyboard navigation should get disabled for all other components. Users should only be able to interact with modal components.

Semantic-UI already handles this for mouse clicks, but it should do the same for keyboard navigation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions