Topic: Autocomplete default value
estalis free asked 2 years ago
alright so im using autocomplete with reactive forms.
it works great, but when i want to use a default value, the autocomplete deoesn't gets updated in the autocomplete. the input is still blank.
how to "refresh" the autocomplete or set the value ?
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Opened
Specification of the issue
- ForumUser: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: MDB5 2.2.0
- Device: who cares
- Browser: who cares
- OS: who cares
- Provided sample code: No
- Provided link: No
Arkadiusz Idzikowski staff commented 2 years ago
@estalis Did you attach the Angular
FormControl
to the autocomplete input and set default value like thisnew FormControl('value')
?