primeng icon indicating copy to clipboard operation
primeng copied to clipboard

p-multiSelect: Component not showing more than 3 values on input text field

Open taranipawan opened this issue 2 years ago • 3 comments

Describe the bug

If we are selecting more than 3 values in p-multiSelect component than it is not showing in input field.

image

Environment

I am using PrimeNg version 16.9.1 and Angular 16.0.2

Reproducer

No response

Angular version

16.0.2

PrimeNG version

16.9.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

16.14.0

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

taranipawan avatar Dec 19 '23 10:12 taranipawan

Looked through the code of v16.7.0 and just discovered that setting on component [maxSelectedLabels]="undefined" (default = 3) make it show everything you select.

kkoripl avatar Dec 19 '23 12:12 kkoripl

use maxSelectedLabels

https://stackblitz.com/edit/q47yiv?file=src%2Fapp%2Fdemo%2Fmulti-select-basic-demo.html,src%2Fapp%2Fdemo%2Fmulti-select-basic-demo.ts

cetincakiroglu avatar Dec 20 '23 11:12 cetincakiroglu

[maxSelectedLabels]="items.length"

YerlinMatu avatar Apr 01 '25 20:04 YerlinMatu