Skip to content

Commit 63cea2c

Browse files
committed
Release v3.1.13.
1 parent 700a28a commit 63cea2c

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
v3.1.13 - Fri, 09 Feb 2018 10:27:15 UTC
2+
---------------------------------------
3+
4+
- [700a28a](../../commit/700a28a) [fixed] Tab focus escapes modal on shift + tab after opening
5+
6+
17
v3.1.12 - Mon, 05 Feb 2018 08:34:57 UTC
28
---------------------------------------
39

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-modal",
3-
"version": "3.1.12",
3+
"version": "3.1.13",
44
"homepage": "https://github.com/reactjs/react-modal",
55
"authors": [
66
"Ryan Florence",

dist/react-modal.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1944,9 +1944,11 @@ function scopeTab(node, event) {
19441944
var head = tabbable[0];
19451945
var tail = tabbable[tabbable.length - 1];
19461946

1947-
// proceed with default browser behavior
1947+
// proceed with default browser behavior on tab.
1948+
// Focus on last element on shift + tab.
19481949
if (node === document.activeElement) {
1949-
return;
1950+
if (!shiftKey) return;
1951+
target = tail;
19501952
}
19511953

19521954
var target;

0 commit comments

Comments
 (0)