Skip to content

Commit af88b46

Browse files
committed
fix: allow passing listeners to the <Navigator> frame.
1 parent 1109e11 commit af88b46

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Diff for: components/Navigator.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ export default {
1010
return h(
1111
'frame',
1212
{
13-
on: {loaded: this.onFrameLoaded},
13+
on: Object.assign(
14+
{},
15+
this.$listeners,
16+
{loaded: this.onFrameLoaded}
17+
),
1418
},
1519
[this.slotContent]
1620
)

Diff for: index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ export default function install(Vue, {routes}) {
4949
return false
5050
}
5151

52-
this.$navigateTo(matchedRoute.component, options)
52+
return this.$navigateTo(matchedRoute.component, options)
5353
},
5454
back(...args) {
55-
this.$navigateBack.call(this, args)
55+
return this.$navigateBack.call(this, args)
5656
}
5757
},
5858
})

0 commit comments

Comments
 (0)