Skip to content

Commit fd992fc

Browse files
mikef438christopherthielen
authored andcommitted
feat($uiViewScroll): change function to return promise
return the promise from the timeout for additional processing Closes #1702
1 parent a178aa8 commit fd992fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/viewScroll.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function $ViewScrollProvider() {
4545
}
4646

4747
return function ($element) {
48-
$timeout(function () {
48+
return $timeout(function () {
4949
$element[0].scrollIntoView();
5050
}, 0, false);
5151
};

0 commit comments

Comments
 (0)