meteor-accounts-ui-bootstrap-3
meteor-accounts-ui-bootstrap-3 copied to clipboard
enroll modal doesn't cleanly close
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");
}