Skip to content

Commit

Permalink
Calling scope.$apply when the ready callback executes on modals. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-krogh committed Sep 1, 2016
1 parent 9bcf4fa commit 79021df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/angular-materialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,8 @@
angular.isFunction(scope.ready) && scope.$apply(scope.ready);
// Need to keep open boolean in sync.
scope.open = true;
scope.$apply();

// If tab support is enabled we need to re-init the tabs
// See https://github.com/Dogfalo/materialize/issues/1634
if (scope.enableTabs) {
Expand Down

0 comments on commit 79021df

Please sign in to comment.