File tree 1 file changed +9
-0
lines changed 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ describe('ui-select tests', function() {
128
128
if ( attrs . appendToBody !== undefined ) { attrsHtml += ' append-to-body="' + attrs . appendToBody + '"' ; }
129
129
if ( attrs . allowClear !== undefined ) { matchAttrsHtml += ' allow-clear="' + attrs . allowClear + '"' ; }
130
130
if ( attrs . inputId !== undefined ) { attrsHtml += ' input-id="' + attrs . inputId + '"' ; }
131
+ if ( attrs . ngClass !== undefined ) { attrsHtml += ' ng-class="' + attrs . ngClass + '"' ; }
131
132
}
132
133
133
134
return compileTemplate (
@@ -349,6 +350,14 @@ describe('ui-select tests', function() {
349
350
expect ( getMatchLabel ( el ) ) . toEqual ( 'Adam' ) ;
350
351
} ) ;
351
352
353
+ it ( 'should merge both ng-class attributes defined on ui-select and its templates' , function ( ) {
354
+ var el = createUiSelect ( {
355
+ ngClass : "{class: expression}"
356
+ } ) ;
357
+
358
+ expect ( $ ( el ) . attr ( 'ng-class' ) ) . toEqual ( "{class: expression, open: $select.open}" ) ;
359
+ } ) ;
360
+
352
361
it ( 'should correctly render initial state with track by feature' , function ( ) {
353
362
var el = compileTemplate (
354
363
'<ui-select ng-model="selection.selected"> \
You can’t perform that action at this time.
0 commit comments