Skip to content

Commit a2dae64

Browse files
Merge pull request #833 from preactjs/fix-ctrl-regression
Fix wrong state when browser handles click event
2 parents 1f691ab + 02e508e commit a2dae64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const UPDATE = (state, url) => {
77
if (url && url.type === 'click') {
88
// ignore events the browser takes care of already:
99
if (url.ctrlKey || url.metaKey || url.altKey || url.shiftKey || url.button !== 0) {
10-
return;
10+
return state;
1111
}
1212

1313
const link = url.target.closest('a[href]');

0 commit comments

Comments
 (0)