Skip to content

Commit 38cd453

Browse files
fix: props
1 parent 41941bc commit 38cd453

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ const isExternal = props => !props.to ||
3434

3535
const vueLinkFactory = slashes => ({
3636
functional: true,
37-
render: (h, { data, children }) => {
38-
data.props = data.props || (data.props = {})
37+
render: (h, { data, children, props }) => {
38+
data.props = props
3939
data.props.slashes = data.props.slashes || slashes
4040

4141
const isLinkedToExternal = isExternal(data.props)

0 commit comments

Comments
 (0)