Skip to content

Commit 1cbbca3

Browse files
committed
Prevent :focus from sticking on anchors under <CaptureClicks>
1 parent 622d130 commit 1cbbca3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/CaptureClicks.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ var CaptureClicks = React.createClass({
8484
return;
8585
}
8686

87+
// Prevent :focus from sticking; preventDefault() stops blur in some browsers
88+
e.blur();
8789
e.preventDefault();
8890

8991
// flag if we already found a "not found" case and bailed

0 commit comments

Comments
 (0)