coreui / coreui/coreui-angular
Autocomplete Component - Cannot clear Template-driven value
Open
@xidedix is already working on this.
Since Apr 13, 2026.
- Dominant language
- TypeScript
- Stars
- 275
- Forks
- 155
- Avg merge
- 2h 14m
- Merged PRs (30d)
- 1
Description
I have a simple autocomlete input:
<input id="..."
[(ngModel)]="value"
cAutocomplete
...
The value is a simple signal:
value = signal('')
After doing an external search following (inputChange) and reacting on (optionChange) with another http request, I want to clear the current displayed value of the input:
value.set('')
But the value of the last selected option remains displayed.
A cleaner does work, but I want to clear the value programmatically.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.