This repository was archived by the owner on Oct 2, 2019. It is now read-only.
File tree 2 files changed +14
-11
lines changed 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 1
- < button type ="button " class ="btn btn-default form-control ui-select-match " tabindex ="-1 "
2
- ng-hide ="$select.open "
3
- ng-disabled ="$select.disabled "
4
- ng-class ="{'btn-default-focus':$select.focus} ";
5
- ng-click ="$select.activate() ">
6
- < span ng-show ="$select.isEmpty() " class ="text-muted "> {{$select.placeholder}}</ span >
7
- < span ng-hide ="$select.isEmpty() " ng-transclude > </ span >
8
- < span class ="caret ui-select-toggle " ng-click ="$select.toggle($event) "> </ span >
9
- </ button >
1
+ < div class ="btn-group ui-select-match btn-block " ng-hide ="$select.open " ng-disabled ="$select.disabled " ng-class ="{'btn-default-focus':$select.focus} ">
2
+ < button type ="button " class ="btn btn-default " ng-class ="{'col-sm-8 col-md-10': $select.allowClear && !$select.isEmpty(),'col-sm-10 col-md-11': !$select.allowClear || $select.isEmpty()} " tabindex ="-1 " ; ="" ng-click ="$select.activate() ">
3
+ < span ng-show ="$select.isEmpty() " class ="text-muted "> {{$select.placeholder}}</ span >
4
+ < span ng-hide ="$select.isEmpty() " ng-transclude =""> </ span >
5
+ </ button >
6
+ < button class ="btn btn-default col-sm-2 col-md-1 " ng-if ="$select.allowClear && !$select.isEmpty() " ng-click ="$select.select(undefined) ">
7
+ < span class ="glyphicon glyphicon-remove ui-select-toggle "> </ span >
8
+ </ button >
9
+ < button class ="btn btn-default col-sm-2 col-md-1 " ng-click ="$select.activate() ">
10
+ < span class ="caret ui-select-toggle " ng-click ="$select.toggle($event) "> </ span >
11
+ </ button >
12
+ </ div >
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ describe('ui-select tests', function() {
83
83
}
84
84
85
85
function getMatchLabel ( el ) {
86
- return $ ( el ) . find ( '.ui-select-match > span[ng-transclude]:not(.ng-hide)' ) . text ( ) ;
86
+ return $ ( el ) . find ( '.ui-select-match > button:first > span[ng-transclude]:not(.ng-hide)' ) . text ( ) ;
87
87
}
88
88
89
89
function clickItem ( el , text ) {
@@ -97,7 +97,7 @@ describe('ui-select tests', function() {
97
97
}
98
98
99
99
function clickMatch ( el ) {
100
- $ ( el ) . find ( '.ui-select-match' ) . click ( ) ;
100
+ $ ( el ) . find ( '.ui-select-match > button:first ' ) . click ( ) ;
101
101
scope . $digest ( ) ;
102
102
}
103
103
You can’t perform that action at this time.
0 commit comments