fix(forms): fix SelectControlValueAccessor not to call onChange twice
Closes #5969
This commit is contained in:
@ -348,7 +348,7 @@ export function main() {
|
||||
expect(sfOption.nativeElement.selected).toBe(true);
|
||||
|
||||
select.nativeElement.value = 'NYC';
|
||||
dispatchEvent(select.nativeElement, "change");
|
||||
dispatchEvent(select.nativeElement, "input");
|
||||
|
||||
expect(fixture.debugElement.componentInstance.form.value).toEqual({"city": 'NYC'});
|
||||
expect(sfOption.nativeElement.selected).toBe(false);
|
||||
|
Reference in New Issue
Block a user