-
-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property '$destroy' of null #175
Comments
Have this same issue. :( |
Same problem
Could it be connected to #92 ? // 'then' is a callback function
modal.element.modal(); //show it
modal.element.find('button.focus-here').focus();
modal.element.on('hidden.bs.modal', function() {
if (!modal.controller.closed) {
modal.scope.close(false); //default cancel is FALSE
}
});
modal.close.then(function(result) {
if (then) then(result);
}).catch(function(error) {
console.log(error);
if (then) then(false);
}); the error does not effect any behaviour in the modal, but it is annoying and could underlie some wasted resources. |
That for sure clean up the error, but as it is it's not a big deal. The point is: with that 'if' does the modal get completely destroyed anyway? |
I got this error in this case: |
I have implemented an Escape listening directive which executes the modal function and i get the same error |
Prevent null error if modal is already destroyed | related issue #175
First of all, thanks for this amazing plugin.
On:
Got:
Bye!
The text was updated successfully, but these errors were encountered: