提交 e2cff561 编写于 作者: V Vladimir Kharlampidi

fix(modals): fixed issue when initially opened modal closed without animation

上级 840503e1
......@@ -84,6 +84,9 @@ class Modal extends Framework7Class {
}
if (!$el || $el.hasClass('modal-in')) {
if (animateModal === false && $el[0] && type !== 'dialog') {
$el[0].style.display = 'block';
}
return modal;
}
......@@ -198,6 +201,7 @@ class Modal extends Framework7Class {
// Modal
$el[animate ? 'removeClass' : 'addClass']('not-animated');
function transitionEnd() {
if ($el.hasClass('modal-out')) {
modal.onClosed();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册