File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ export interface MatChipInputEvent {
29
29
'(keydown)' : '_keydown($event)' ,
30
30
'(blur)' : '_blur()' ,
31
31
'(focus)' : '_focus()' ,
32
+ '(input)' : '_onInput()' ,
32
33
}
33
34
} )
34
35
export class MatChipInput {
@@ -68,7 +69,7 @@ export class MatChipInput {
68
69
69
70
get empty ( ) : boolean {
70
71
let value : string | null = this . _inputElement . value ;
71
- return value == null || value === '' ;
72
+ return ( value == null || value === '' ) ;
72
73
}
73
74
74
75
/** The native input element to which this directive is attached. */
@@ -115,5 +116,10 @@ export class MatChipInput {
115
116
}
116
117
}
117
118
119
+ _onInput ( ) {
120
+ // Let chip list know whenever the value changes.
121
+ this . _chipList . stateChanges . next ( ) ;
122
+ }
123
+
118
124
focus ( ) { this . _inputElement . focus ( ) ; }
119
125
}
You can’t perform that action at this time.
0 commit comments