Clear icon for AutoComplete
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 <p-autoComplete type="search" ...
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.
What is the status on this issue? Is it merged to latest release?
Whats the status of this ticket? Vuetify supports it for e.g.. It rather annoying if we need to switch to vuetify due to something this trivial. And if there is a Pull Request, why not merge or fix it?
Hi,
So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap? Please don't forget to add your feedback as a comment after reopening the issue. These will be taken into account by us and will contribute to the development of this feature. Thanks a lot for your understanding!
Best Regards,