mirror of
https://github.com/donl/meteor-ionic.git
synced 2026-05-26 22:06:41 -06:00
fix popover close bug
This commit is contained in:
parent
e853bfdf20
commit
9a06e10959
1 changed files with 2 additions and 2 deletions
|
|
@ -121,12 +121,12 @@ IonPopup = {
|
|||
},
|
||||
|
||||
close: function () {
|
||||
var $backdrop = $(this.view.firstNode());
|
||||
var $popup = $backdrop.find('.popup-container');
|
||||
var $popup = this._domrange ? $(this.view.firstNode()).find('.popup-container') : $('.popup-container');
|
||||
$popup.addClass('popup-hidden').removeClass('active');
|
||||
|
||||
setTimeout(function () {
|
||||
$('body').removeClass('popup-open');
|
||||
$('.backdrop').remove();
|
||||
Blaze.remove(this.view);
|
||||
}.bind(this), 100);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue