This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.
Problem with modal after update to UI bootstrap 0.10.0 #2009
Closed
Description
Hi,
I've an unit test that check if a modal is getting closed. Running it with UI Bootstrap 0.9.0 it works fine! I've updated UI Bootstrap to 0.10.0 and now this test doesn't run !!!
$modalInstance.close() works, the modal is closed, but the css class is still present in the DOM !!
My test is like this
// open the modal myModal.open(); $rootScope.$digest(); // modal should be present in the DOM angular.element.find('.my-modal-class'); // close the modal myModal.close(); $rootScope.$digest(); // modal should be not present in the DOM angular.element.find('.my-modal-class');
And the function to open e close the modal are simply
$modalInstance.close();
and
var modalInstance = $modal.open({ backdrop: 'static', keyboard: false, templateUrl: 'modal.tmpl.html', controller: "modalCtrl", resolve: { } });
What's wrong? I'm sure that modal is closed....but why do I find '.my-modal-class' in the DOM if is closed?
Metadata
Metadata
Assignees
Labels
No labels