Skip to content

Commit

Permalink
fix: #12
Browse files Browse the repository at this point in the history
  • Loading branch information
daliborgogic committed Dec 29, 2020
1 parent d2e6e1b commit 6913085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/templates/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default ({ app: { router } }) => {
// Called only once, when the directive is first bound to the element. This is where you can do one-time setup work.
bind (el) {
const navigate = event => {
const href = event.target.getAttribute('href')
const href = event.currentTarget.getAttribute('href')
if (href && href[0] === '/') {
event.preventDefault()
router.push(href)
Expand Down

0 comments on commit 6913085

Please sign in to comment.