Skip to content

Commit 6913085

Browse files
committed
fix: #12
1 parent d2e6e1b commit 6913085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/templates/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default ({ app: { router } }) => {
66
// Called only once, when the directive is first bound to the element. This is where you can do one-time setup work.
77
bind (el) {
88
const navigate = event => {
9-
const href = event.target.getAttribute('href')
9+
const href = event.currentTarget.getAttribute('href')
1010
if (href && href[0] === '/') {
1111
event.preventDefault()
1212
router.push(href)

0 commit comments

Comments
 (0)