Skip to content

Commit

Permalink
Build version 5.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
KittyGiraudel committed Mar 13, 2020
1 parent c7ffa34 commit 0d8125b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions a11y-dialog.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions example/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,10 @@
});
}

// If there was a focused element before the dialog was opened, restore the
// focus back to it
if (focusedBeforeDialog) {
// If there was a focused element before the dialog was opened (and it has a
// `focus` method), restore the focus back to it
// See: https://github.com/edenspiekermann/a11y-dialog/issues/108
if (focusedBeforeDialog && focusedBeforeDialog.focus) {
focusedBeforeDialog.focus();
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "a11y-dialog",
"version": "5.3.0",
"version": "5.3.1",
"description": "A tiny script to make dialog windows accessible to assistive technology users.",
"homepage": "https://github.com/edenspiekermann/a11y-dialog",
"license": "MIT",
Expand Down

0 comments on commit 0d8125b

Please sign in to comment.