File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
projects/igniteui-angular/src/lib/simple-combo Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,9 @@ export class IgxSimpleComboComponent extends IgxComboBaseDirective implements Co
199
199
200
200
/** @hidden @internal */
201
201
public handleInputChange ( event ?: any ) {
202
- this . searchValue = event . target . value ;
202
+ if ( event !== undefined ) {
203
+ this . searchValue = typeof event === 'string' ? event : event . target . value ;
204
+ }
203
205
this . _onChangeCallback ( this . searchValue ) ;
204
206
if ( this . collapsed && this . comboInput . focused ) {
205
207
this . open ( ) ;
@@ -362,10 +364,11 @@ export class IgxSimpleComboComponent extends IgxComboBaseDirective implements Co
362
364
} ;
363
365
this . selectionChanging . emit ( args ) ;
364
366
if ( ! args . cancel ) {
365
- const argsSelection = args . newSelection !== undefined
367
+ let argsSelection = args . newSelection !== undefined
366
368
&& args . newSelection !== null
367
- ? [ args . newSelection ]
369
+ ? args . newSelection
368
370
: [ ] ;
371
+ argsSelection = Array . isArray ( argsSelection ) ? argsSelection : [ argsSelection ] ;
369
372
this . selectionService . select_items ( this . id , argsSelection , true ) ;
370
373
if ( this . _updateInput ) {
371
374
this . comboInput . value = this . _value = displayText !== args . displayText
You can’t perform that action at this time.
0 commit comments