Skip to content

Commit

Permalink
Consider all query params in parent routes
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrysiewicz committed Feb 28, 2018
1 parent 09d02ae commit bff1c81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default Mixin.create({
}
const scrollElement = get(this, 'service.scrollElement');

const preserveScrollPosition = get(lastTransition, 'handler.controller.preserveScrollPosition');
const preserveScrollPosition = transitions.some((transition) => get(transition, 'handler.controller.preserveScrollPosition'));

if (!preserveScrollPosition) {
if ('window' === scrollElement) {
Expand Down

0 comments on commit bff1c81

Please sign in to comment.