Skip to content

Commit

Permalink
Try to fix #17963
Browse files Browse the repository at this point in the history
Try to fix #17963, I'm not sure this is the right way and it's weird, but the old "qualifiedRouteName" property works in this way and "_route" is used similarly to "qualifiedRouteName".
  • Loading branch information
2hu12 committed May 7, 2019
1 parent 9975397 commit cd43696
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/@ember/-internals/glimmer/lib/components/link-to.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,9 @@ if (EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS) {
_currentRouterState: alias('_routing.currentState'),
_targetRouterState: alias('_routing.targetState'),

_route: computed('route', '_currentRoute', function computeLinkToComponentRoute(this: any) {
_route: computed('route', '_currentRouterState', function computeLinkToComponentRoute(
this: any
) {
let { route } = this;
return route === UNDEFINED ? this._currentRoute : route;
}),
Expand Down Expand Up @@ -762,7 +764,6 @@ if (EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS) {
'_models',
'_query',
'tagName',
'loading',
'loadingHref',
function computeLinkToComponentHref(this: any) {
if (this.tagName !== 'a') {
Expand Down

0 comments on commit cd43696

Please sign in to comment.