diff --git a/src/bootstrap/select-multiple.tpl.html b/src/bootstrap/select-multiple.tpl.html index 591afcf0d..04293b953 100644 --- a/src/bootstrap/select-multiple.tpl.html +++ b/src/bootstrap/select-multiple.tpl.html @@ -16,7 +16,7 @@ aria-expanded="{{$select.open}}" aria-label="{{$select.baseTitle}}" ng-class="{'spinner': $select.refreshing}" - ondrop="return false;"> + data-disallow-drop=data-disallow-drop>
diff --git a/src/select2/select-multiple.tpl.html b/src/select2/select-multiple.tpl.html index 9be0dd949..ba1e34d85 100644 --- a/src/select2/select-multiple.tpl.html +++ b/src/select2/select-multiple.tpl.html @@ -22,7 +22,7 @@ ng-model="$select.search" ng-click="$select.activate()" style="width: 34px;" - ondrop="return false;"> + data-disallow-drop=data-disallow-drop>
diff --git a/src/uiSelectSortDirective.js b/src/uiSelectSortDirective.js index 43a546171..71aa0fb91 100644 --- a/src/uiSelectSortDirective.js +++ b/src/uiSelectSortDirective.js @@ -31,6 +31,10 @@ uis.directive('uiSelectSort', ['$timeout', 'uiSelectConfig', 'uiSelectMinErr', f } }); + if (element.data('disallowDrop')) { + return; + } + element.on('dragstart', function(event) { element.addClass(draggingClassName);