Skip to content

Commit

Permalink
1.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
weotch committed Nov 23, 2021
1 parent 4907b4e commit 7bdba50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-routing-anchor-parser",
"version": "1.12.0",
"version": "1.13.0",
"description": "A Vue directive that parses child elements for internally linking anchor tags and binds their click events to use Vue Router's push().",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions smart-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ exports.default = {
render: function render(create, _ref) {
var to = _ref.props.to,
data = _ref.data,
listeners = _ref.listeners,
children = _ref.children;

if (!to) {
Expand All @@ -39,6 +40,7 @@ exports.default = {
if ((0, _index.isInternal)(to)) {
// Render a nuxt-link
return create('nuxt-link', _extends({}, data, {
nativeOn: listeners, // nuxt-link doesn't forward events on it's own
props: {
to: (0, _index.makeRouterPath)(to)
}
Expand Down

0 comments on commit 7bdba50

Please sign in to comment.