coreui / coreui/coreui-angular

Autocomplete Component - Cannot clear Template-driven value

Open
#249 13 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.