Skip to content

Commit

Permalink
fix(link): correctly warn wrong v-slot usage
Browse files Browse the repository at this point in the history
Fix #3091
  • Loading branch information
posva committed Jan 14, 2020
1 parent d2441b5 commit a150291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ export default {
warn(
false,
`RouterLink with to="${
this.props.to
}" is trying to use a scoped slot but it didn't provide exactly one child.`
this.to
}" is trying to use a scoped slot but it didn't provide exactly one child. Wrapping the content with a span element.`
)
}
return scopedSlot.length === 0 ? h() : h('span', {}, scopedSlot)
Expand Down

0 comments on commit a150291

Please sign in to comment.