Skip to content

Commit

Permalink
Release v3.1.13.
Browse files Browse the repository at this point in the history
  • Loading branch information
diasbruno committed Feb 9, 2018
1 parent 700a28a commit 63cea2c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
v3.1.13 - Fri, 09 Feb 2018 10:27:15 UTC
---------------------------------------

- [700a28a](../../commit/700a28a) [fixed] Tab focus escapes modal on shift + tab after opening


v3.1.12 - Mon, 05 Feb 2018 08:34:57 UTC
---------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-modal",
"version": "3.1.12",
"version": "3.1.13",
"homepage": "https://github.com/reactjs/react-modal",
"authors": [
"Ryan Florence",
Expand Down
6 changes: 4 additions & 2 deletions dist/react-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -1944,9 +1944,11 @@ function scopeTab(node, event) {
var head = tabbable[0];
var tail = tabbable[tabbable.length - 1];

// proceed with default browser behavior
// proceed with default browser behavior on tab.
// Focus on last element on shift + tab.
if (node === document.activeElement) {
return;
if (!shiftKey) return;
target = tail;
}

var target;
Expand Down
Loading

0 comments on commit 63cea2c

Please sign in to comment.