Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fix(modal): Fix focus when the dialog is close or cancelled #2888

Closed
wants to merge 1 commit into from
Closed

fix(modal): Fix focus when the dialog is close or cancelled #2888

wants to merge 1 commit into from

Conversation

Tobino
Copy link
Contributor

@Tobino Tobino commented Oct 26, 2014

This can be reproduced on the sample page on http://angular-ui.github.io/bootstrap/#/modal

  • In the Dialog section click 'Open me!' button
  • Close the Dialog
  • Hit tab key

Result: focus is lost in the page

According to http://www.w3.org/TR/wai-aria-practices/#dialog_modal
When the dialog is closed or cancelled focus should return to the element in the application which had focus before the dialog is invoked. This is usually the control which opened the dialog.

@wesleycho
Copy link
Contributor

Thanks for this - this is good work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants