primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Chips: Removed in V20-rc

Open gregorAutomatics opened this issue 1 year ago • 10 comments

The Chips component has again been removed in v20-rc: https://github.com/primefaces/primeng/commit/86389f5126bd484727401c823fe00f780425fbfa

Despite having established that Autocomplete doesn't provide a feature-complete replacement: https://github.com/primefaces/primeng/issues/16390#issuecomment-2795088855

Is its deprecation now final and a Chips replacement needs to be implemented seperately?

gregorAutomatics avatar Jul 08 '25 10:07 gregorAutomatics

See: https://primeng.org/migration/v20

Image

rosenthalj avatar Jul 08 '25 10:07 rosenthalj

See: https://primeng.org/migration/v20

Image

Have a look at this earlier issue: https://github.com/primefaces/primeng/issues/16390

Autocomplete with [typeahead]="false" doesn't provide the same feature set as Chips. It specifically lacks automatic string seperation by [separator] input.

gregorAutomatics avatar Jul 08 '25 11:07 gregorAutomatics

In our case, our users also really miss being able to use TAB to jump to the next control and the last item automatically being accepted. With the current behaviour the last item (text) just "disappears" and the user often doesn't realize it.

adlh avatar Jul 08 '25 13:07 adlh

I did some digging and found out that PrimeVue v4 has the same issue open: https://github.com/primefaces/primevue/issues/6611 Are there any updates regarding this?

gregorAutomatics avatar Aug 19 '25 11:08 gregorAutomatics

Chips has been removed in v18.0.0, re-added in v18.0.02/v19 and now it's removed again from v20.

@cagataycivici Can you tell us what's the status of this component? You said in this comment this was a mistake to remove it.

Chocobozzz avatar Aug 25 '25 07:08 Chocobozzz

I need to add a Chips-selector component to my app. I tried to implement it using the autocomplete component, but it's not the same. This scenario is difficult - or impossible - to implement with autocomplete:

  • Having a field where the user can select chips from an existing list.
  • Creating a new chip if it doesn't exist yet.
Image

I can of course implement it by doing (onKeyUp)="add($event.code, $event.target)", but it's a dirty solution

nZeus avatar Aug 25 '25 13:08 nZeus

Autocomplete also seems to be missing an onAdd type emitter when typeahead=false and multiple=true, (just an onSelect event when a typeahead suggestion is selected). This is what this issue https://github.com/primefaces/primeng/issues/17114 was originally reporting.

lblu12555 avatar Aug 29 '25 15:08 lblu12555

Any updates here?

gregorAutomatics avatar Sep 11 '25 12:09 gregorAutomatics

fixed in https://github.com/primefaces/primeng/commit/a9cc50ec03c150e5cb7217551bdb7da55ff9a2f5

cetincakiroglu avatar Sep 23 '25 17:09 cetincakiroglu

https://github.com/primefaces/primeng/issues/18923

cagataycivici avatar Sep 24 '25 10:09 cagataycivici