-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for an issue that matches the one I want to file, without success.
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working