meteor-accounts-ui-bootstrap-3 icon indicating copy to clipboard operation
meteor-accounts-ui-bootstrap-3 copied to clipboard

enroll modal doesn't cleanly close

Open solace opened this issue 10 years ago • 0 comments

When completing the enrolment process with the modal, clicking Close or Submit destroys the form component, but the lightbox background doesn't disappear.

Appears to be related to: https://github.com/ianmartorell/meteor-accounts-ui-bootstrap-3/blob/master/login_buttons_dialogs.js#L116 https://github.com/ianmartorell/meteor-accounts-ui-bootstrap-3/blob/master/login_buttons_dialogs.js#L136

As $modal appears to be unset or not correctly scoped, and overriding the events seems to resolve the issue, eg:

'click #login-buttons-cancel-enroll-account-button': function() {
    var $modal = $('#login-buttons-enroll-account-modal');
    $modal.modal("hide");
}

solace avatar Sep 01 '15 10:09 solace