ianmartorell / meteor-accounts-ui-bootstrap-3

accounts-ui package with Bootstrap 3 and localization support
150 stars 109 forks source link

enroll modal doesn't cleanly close #159

Open solace opened 9 years ago

solace commented 9 years ago

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");
}