mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
FIxed #109 - modal auto focus and unfocus on close
This commit is contained in:
4
js/ext/angular/src/service/ionicModal.js
vendored
4
js/ext/angular/src/service/ionicModal.js
vendored
@ -14,11 +14,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
|
||||
|
||||
@ -25,6 +25,7 @@
|
||||
</header>
|
||||
<content>
|
||||
Realllllyyy long content
|
||||
<input type="text">
|
||||
<div style="height: 2000px; background-color: red;"></div>
|
||||
</content>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user