fix: Don’t prevent the browser’s default behavior for modifier keys

pull/67/head
Yuhei Yasuda 5 years ago
parent 5419abdcc6
commit 68d3d4f4e8

@ -98,6 +98,7 @@ export function createRouter(
// only intercept inbound links // only intercept inbound links
if ( if (
target !== `_blank` && target !== `_blank` &&
!(e.ctrlKey || e.shiftKey || e.altKey || e.metaKey) &&
protocol === currentUrl.protocol && protocol === currentUrl.protocol &&
hostname === currentUrl.hostname hostname === currentUrl.hostname
) { ) {

Loading…
Cancel
Save