Skip to content

Commit

Permalink
fix: the uncaught typeerror when el is null (#1308)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Jul 30, 2020
1 parent 1a64dc8 commit 952f4c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/router/history/hash.js
Expand Up @@ -39,7 +39,7 @@ export class HashHistory extends History {
on('click', e => {
const el = e.target.tagName === 'A' ? e.target : e.target.parentNode;

if (el.tagName === 'A' && !/_blank/.test(el.target)) {
if (el && el.tagName === 'A' && !/_blank/.test(el.target)) {
navigating = true;
}
});
Expand Down

1 comment on commit 952f4c9

@vercel
Copy link

@vercel vercel bot commented on 952f4c9 Jul 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.