Skip to content

Autocomplete Component - Cannot clear Template-driven value #249

Description

@bernik1980

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions