krescruz / angular-materialize

Angularjs directives for Materialize CSS Framework https://github.com/Dogfalo/materialize
MIT License
397 stars 129 forks source link

Modal 'ready' event does not update the 'open' flag correctly #186

Closed harawata closed 8 years ago

harawata commented 8 years ago

Please see the demo.

Just like 'complete', scope.$apply() may be needed after updating the flag.

                        var ready = function() {
                          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
webbiesdk commented 8 years ago

Right you are, thanks.