We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57dc8a9 commit c3cdadcCopy full SHA for c3cdadc
src/core/router/history/html5.js
@@ -24,7 +24,7 @@ export class HTML5History extends History {
24
on('click', e => {
25
const el = e.target.tagName === 'A' ? e.target : e.target.parentNode;
26
27
- if (el.tagName === 'A' && !/_blank/.test(el.target)) {
+ if (el && el.tagName === 'A' && !/_blank/.test(el.target)) {
28
e.preventDefault();
29
const url = el.href;
30
// solve history.pushState cross-origin issue
0 commit comments