Skip to content

Commit fe9f43d

Browse files
committed
fix(titles): error during quick transition changes
1 parent 60b3f86 commit fe9f43d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: js/angular/controller/navBarController.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function($scope, $element, $attrs, $ionicViewService, $animate, $compile, $ionic
103103
currentTitles = $element[0].querySelectorAll('.title');
104104
if (currentTitles.length) {
105105
oldTitleEl = $compile('<h1 class="title" ng-bind-html="oldTitle"></h1>')($scope);
106-
jqLite(currentTitles[0]).replaceWith(oldTitleEl);
106+
jqLite(currentTitles[currentTitles.length-1]).replaceWith(oldTitleEl);
107107
}
108108
//Compile new title
109109
newTitleEl = $compile('<h1 class="title invisible" ng-bind-html="title"></h1>')($scope);

0 commit comments

Comments
 (0)