After adding this action to my Route:
actions: {
willTransition() {
this.refresh();
}
}
all links inside the template that reference to the parent route are marked as active, even if they produce urls with different dynamic segments.
I've made an Ember Twiddle to reproduce the bug. It only happens with willTransition() action, not with redirect() hook. (I need to use willTransition to refresh the parent route.)
One thing to mention: on first render everything is in order. It breaks when willTransition is triggered.
Any ideas? :)
Aucun commentaire:
Enregistrer un commentaire