-
Notifications
You must be signed in to change notification settings - Fork 3k
fix(uiView): Do NOT autoscroll when autoscroll attr is missing #932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Anyone want to review before I merge this? |
Hey, sorry I didn't see this before I merged the other one. If you wanna update and rebase, I'll push the big green button for ya (or feel free to do it yourself). Ping me if you need help squashing commits. |
👍 - I've been putting BTW, when you rebase, you are going to be some mega conflicts. That code was moved to the |
elem.append($compile('<div><ui-view></ui-view></div>')(scope)); | ||
$state.transitionTo(aState); | ||
$q.flush(); | ||
if ($animate) $animate.flush(); | ||
expect($uiViewScroll).toHaveBeenCalledWith(elem.find('span').parent()); | ||
expect($uiViewScroll).not.toHaveBeenCalledWith(elem.find('span').parent()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could just do expect($uiViewScroll).not.toHaveBeenCalled();
- no need to have the With(elem...)
suffix.
Breaking Change: If you had ui-views that you wanted to autoscroll to on state change, you may now need to explicitly add `autoscroll="true"`. Fixes #807
fix(uiView): Do NOT autoscroll when autoscroll attr is missing
fix(uiView): Do NOT autoscroll when autoscroll attr is missing
Breaking Change: If you had ui-views that you wanted to autoscroll to on state change, you may now need to explicitly add
autoscroll="true"
. Fixes #807