从另一个模态抛出错误中打开一个模态

时间:2018-04-25 09:16:03

标签: jquery modal-dialog materialize

我正在使用 Materizalize CSS Jquery ,当我从另一个模态中打开一个模态时,我得到以下错误 :`

  

materialize.min.js:6 Uncaught RangeError:最大调用堆栈大小   超出。

这有什么问题以及如何解决?

这是我的Jquery:

$(document).ready(function () {
    $('.modal').modal();
});

所以所有模态都有类.modal

以下是示例:

<!--Signup Modal Structure -->
                <div id="signup_modal" class="modal">
                    <div class="modal-content">
                        <div class="row">
                            <a href="#!" class="col s6 modal-action modal-close">
                                <i class="fa fa-times-circle-thin fa-2x" aria-hidden="true"></i>
                            </a>
                        </div>
                        <div class="row">
                            <a class="col s12 waves-effect waves-light btn-large social facebook">
                                <i class="fa fa-facebook"></i> Sign up with facebook</a>
                        </div>
                        <div class="row">
                            <a class="col s12 waves-effect waves-light btn-large social google">
                                <i class="fa fa-google"></i> Sign up with google</a>
                        </div>
                        <div class="row">
                            <span class="col s12 separator">
                                or
                            </span>
                        </div>
                        <div class="row">
                            <a class="col s12 waves-effect waves-light btn-large social lime  modal-action modal-close modal-trigger" href="#signupEmail_modal">
                                <i class="small material-icons">email</i>Sign up with email</a>
                        </div>
                        <div class="row">
                            <div class="col s12 modal-footer">
                                <span class="col s9">Already have a LimeLINE account?</span>
                                <a href="#!" class="col s3">Login</a>
                            </div>
                        </div>
                    </div>
                </div>

0 个答案:

没有答案