Preflight Checklist
Bug type
Functionality
Which version are you using
18.5.0
Operating system
Win11
Browser / Browser version
Firefox 131.0.3 (64-bit)
Input mode
None
Additional settings
No response
What happened?
When invoking writeValue (explicitly or implicitly via FormControl.setValue) on an input which has a autocomplete attached, the value is not synchronously applied to the HTMLInputElement.value, but only on the next tick.
This breaks the (implicit) contract, that the value should be reflected synchronously in the native elements value.
Relevant code:
|
Promise.resolve(null).then(() => this._assignOptionValue(value)); |
See as well:
angular/components#3250
Steps to reproduce the issue
- Invoke
FormControl.setValue('a') on a FormControl bound to an input with autocomplete
- Observe: input.nativeElement.value is not 'a' (which would be expected)
Relevant log output
No response
Preflight Checklist
Bug type
Functionality
Which version are you using
18.5.0
Operating system
Win11
Browser / Browser version
Firefox 131.0.3 (64-bit)
Input mode
None
Additional settings
No response
What happened?
When invoking
writeValue(explicitly or implicitly via FormControl.setValue) on an input which has a autocomplete attached, the value is not synchronously applied to the HTMLInputElement.value, but only on the next tick.This breaks the (implicit) contract, that the value should be reflected synchronously in the native elements value.
Relevant code:
sbb-angular/src/angular/autocomplete/autocomplete-trigger.ts
Line 494 in fbce1d5
See as well: angular/components#3250
Steps to reproduce the issue
FormControl.setValue('a')on a FormControl bound to an input with autocompleteRelevant log output
No response