File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ export class TypeaheadContainerComponent {
142
142
}
143
143
}
144
144
145
- protected selectActive ( value :any ) :void {
145
+ protected selectActive ( value :TypeaheadMatch ) :void {
146
146
this . isFocused = true ;
147
147
this . _active = value ;
148
148
}
@@ -181,11 +181,11 @@ export class TypeaheadContainerComponent {
181
181
this . isFocused = false ;
182
182
}
183
183
184
- public isActive ( value :any ) :boolean {
184
+ public isActive ( value :TypeaheadMatch ) :boolean {
185
185
return this . _active === value ;
186
186
}
187
187
188
- private selectMatch ( value :any , e :Event = void 0 ) :boolean {
188
+ private selectMatch ( value :TypeaheadMatch , e :Event = void 0 ) :boolean {
189
189
if ( e ) {
190
190
e . stopPropagation ( ) ;
191
191
e . preventDefault ( ) ;
Original file line number Diff line number Diff line change @@ -175,8 +175,8 @@ export class TypeaheadDirective implements OnInit {
175
175
}
176
176
}
177
177
178
- public changeModel ( value : any ) :void {
179
- let valueStr :string = TypeaheadUtils . getValueFromObject ( value , this . typeaheadOptionField ) ;
178
+ public changeModel ( match : TypeaheadMatch ) :void {
179
+ let valueStr :string = match . value ;
180
180
this . ngControl . viewToModelUpdate ( valueStr ) ;
181
181
( this . ngControl . control as FormControl ) . setValue ( valueStr ) ;
182
182
this . hide ( ) ;
You can’t perform that action at this time.
0 commit comments