when selected item contains many character,we need typewrite BackSpace key too many times,it's not convenient!
I need this feature too. something like
I also have need for this.
Would be handy!
Any update on this?
Building on @sanketsw answer:
<p-autoComplete #ref type="search" (onBlur)="onBlur()" ... />
import {AutoComplete} from 'primeng/autocomplete';
@ViewChild('ref') ref: AutoComplete;
onBlur(): void {
if (!this.ref.inputEL.nativeElement.value) {
// Set to null manually:
this.control.setValue(null);
this.value = null;
}
}
I also need this feature. Dropdown does it very well with [showClear]="true".
There's a Pull Request above to fix this.
Most helpful comment
Any update on this?