mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
FIxed #109 - modal auto focus and unfocus on close
This commit is contained in:
4
dist/js/ionic-angular.js
vendored
4
dist/js/ionic-angular.js
vendored
@ -167,11 +167,15 @@ angular.module('ionic.service.modal', ['ionic.service.templateLoad'])
|
||||
$animate.enter(element, angular.element($document[0].body));
|
||||
}
|
||||
$animate.addClass(element, this.animation);
|
||||
|
||||
ionic.views.Modal.prototype.show.call(this);
|
||||
},
|
||||
// Hide the modal
|
||||
hide: function() {
|
||||
var element = angular.element(this.el);
|
||||
$animate.removeClass(element, this.animation);
|
||||
|
||||
ionic.views.Modal.prototype.hide.call(this);
|
||||
},
|
||||
|
||||
// Remove and destroy the modal scope
|
||||
|
||||
Reference in New Issue
Block a user