File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 169
169
}
170
170
}
171
171
function setControlValue ( value ) {
172
+ var combo = element . data ( controlName ) , multiSelection = combo . options . multiSelection ;
172
173
comboItems = value ;
173
- if ( typeof value === "string" ) {
174
+ if ( typeof value === "string" && multiSelection && multiSelection . enabled ) {
174
175
// in case view value is changed from text field (default Array.toString representation is comma separated)
175
- value = value . split ( "," ) ;
176
+ value = value . split ( multiSelection . itemSeparator ) ;
176
177
}
177
- comboValue ( element . data ( controlName ) , value ) ;
178
- return element . data ( controlName ) . text ( ) ;
178
+ comboValue ( combo , value ) ;
179
+ return combo . text ( ) ;
179
180
}
180
181
function parseValue ( ) {
181
182
//"parse" through the control value, ensure no-flicker with formatted values
187
188
combo . refreshValue ( ) ;
188
189
}
189
190
190
- return comboValue ( element . data ( controlName ) ) ;
191
+ return comboValue ( combo ) ;
191
192
}
192
193
element . on ( $ . ig . angular . igCombo . events . join ( " " ) , function ( event , args ) {
193
194
scope . $apply ( function ( ) {
You can’t perform that action at this time.
0 commit comments