I am trying to build a directive to make angular UI $uibModal draggable. And also I want to close all of opened drop down list of ui-select in the modal body, when the modal is dragging.
Does anyone know how to close all of ui-select
list in a $uibModal
?
jsbin https://jsbin.com/lopitopiwa/edit?html,js,output
angular.module('myApp').directive('uibModalDragging',[
UibModalDragging
]);
function UibModalDragging() {
return {
restrict: 'A',
scope: false,
link: function (scope, iElem, iAttrs) {
$(iElem).closest('.modal-content').draggable({
handler: '.panel-heading',
start: onStart
})
}
};
function onStart() {
//*********************************************
//close all ui-select ???
}
}