primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Clear icon for AutoComplete

Open zhangkang1521 opened this issue 9 years ago • 10 comments

when selected item contains many character,we need typewrite BackSpace key too many times,it's not convenient!

zhangkang1521 avatar Aug 15 '17 02:08 zhangkang1521

I need this feature too. something like <p-autoComplete type="search" ...

sanketsw avatar Dec 07 '17 12:12 sanketsw

I also have need for this.

kevinhaeni avatar May 03 '18 08:05 kevinhaeni

Would be handy!

jklapwijk avatar Jun 08 '18 06:06 jklapwijk

Any update on this?

dev-amitkmishra avatar Aug 14 '18 06:08 dev-amitkmishra

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;
  }
}

Laoujin avatar Apr 08 '19 13:04 Laoujin

I also need this feature. Dropdown does it very well with [showClear]="true".

augustobreno avatar Mar 31 '21 10:03 augustobreno

There's a Pull Request above to fix this.

augustobreno avatar Mar 31 '21 17:03 augustobreno

What is the status on this issue? Is it merged to latest release?

vochitan90 avatar Feb 08 '22 03:02 vochitan90

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?

telion2 avatar May 09 '22 11:05 telion2

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,

mertsincan avatar Nov 09 '22 14:11 mertsincan