This repository was archived by the owner on Oct 2, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ angular.module('ui.select', [])
43
43
44
44
ctrl . open = false ;
45
45
46
+ // When the user clicks on ui-select, displays the dropdown list
46
47
ctrl . activate = function ( ) {
47
48
if ( ctrl . disabled === false ) {
48
49
ctrl . open = true ;
@@ -53,6 +54,7 @@ angular.module('ui.select', [])
53
54
}
54
55
} ;
55
56
57
+ // When the user clicks on an item inside the dropdown list
56
58
ctrl . select = function ( item ) {
57
59
ctrl . selected = item ;
58
60
ctrl . close ( ) ;
Original file line number Diff line number Diff line change 2
2
ng-class ="{'select2-container-active select2-dropdown-open': $select.open,
3
3
'select2-container-disabled': $select.disabled} ">
4
4
< div class ="ui-select-match "> </ div >
5
- < div ng- class ="{' select2-display-none': !$select.open} "
6
- class ="select2-drop select2-with-searchbox select2-drop-active ">
5
+ < div class ="select2-drop select2-with-searchbox select2-drop-active "
6
+ ng- class ="{' select2-display-none': !$select.open} ">
7
7
< div class ="select2-search ">
8
- < input type ="text "
9
- autocomplete ="off " autocorrect ="off " autocapitalize ="off " spellcheck ="false "
8
+ < input type ="text " autocomplete ="off " autocorrect ="off " autocapitalize ="off " spellcheck ="false "
10
9
class ="ui-select-search select2-input "
11
10
ng-model ="$select.search ">
12
11
</ div >
You can’t perform that action at this time.
0 commit comments