fix(forms): use change event for select multiple (#9713)
This commit is contained in:
		
							parent
							
								
									137fff9632
								
							
						
					
					
						commit
						3cbded6694
					
				| @ -47,7 +47,7 @@ abstract class HTMLCollection { | ||||
|  */ | ||||
| @Directive({ | ||||
|   selector: 'select[multiple][ngControl],select[multiple][ngFormControl],select[multiple][ngModel]', | ||||
|   host: {'(input)': 'onChange($event.target)', '(blur)': 'onTouched()'}, | ||||
|   host: {'(change)': 'onChange($event.target)', '(blur)': 'onTouched()'}, | ||||
|   providers: [SELECT_MULTIPLE_VALUE_ACCESSOR] | ||||
| }) | ||||
| export class SelectMultipleControlValueAccessor implements ControlValueAccessor { | ||||
|  | ||||
| @ -50,7 +50,7 @@ abstract class HTMLCollection { | ||||
| @Directive({ | ||||
|   selector: | ||||
|       'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]', | ||||
|   host: {'(input)': 'onChange($event.target)', '(blur)': 'onTouched()'}, | ||||
|   host: {'(change)': 'onChange($event.target)', '(blur)': 'onTouched()'}, | ||||
|   providers: [SELECT_MULTIPLE_VALUE_ACCESSOR] | ||||
| }) | ||||
| export class SelectMultipleControlValueAccessor implements ControlValueAccessor { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user