MultiSelect: Label does not properly update when properties change #13862
Labels
LTS-FIXED-14.2.16
LTS-FIXED-15.4.13
Fixed in PrimeNG LTS 15.4.13
LTS-PORTABLE
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
The shown label is calculated using
updateLabel()
. This function depends on the fieldsselectedItemsLabel
,maxSelectedLabels
anddisplaySelectedLabel
, where changing them does not triggerupdateLabel()
. Other fields the label depends on are already properties and trigger the update function in the setter.Environment
N/A
Reproducer
No response
Angular version
^16.2.0
PrimeNG version
16.4.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
v18.16.1
Browser(s)
No response
Steps to reproduce the behavior
p-multiselect
withselectedItemsLabel
,maxSelectedLabels
and/ordisplaySelectedLabel
selectedItemsLabel
Expected behavior
Label displayed in
.p-multiselect-label
should be updated onselectedItemsLabel
,maxSelectedLabels
ordisplaySelectedLabel
change.The text was updated successfully, but these errors were encountered: