Skip to content

Commit 2e20c3d

Browse files
[ACS-9978] DynamicChipListComponent not rendered as expected (#11132)
1 parent ac7e21d commit 2e20c3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/core/src/lib/dynamic-chip-list/dynamic-chip-list.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ export class DynamicChipListComponent implements OnChanges, OnInit, AfterViewIni
179179
chips.reduce((width, val, index) => {
180180
width += val._elementRef.nativeElement.getBoundingClientRect().width + chipMargin;
181181
const availableSpace =
182-
(index === chips.length - 1 && width <= containerWidth) ? containerWidth : containerWidth - viewMoreBtnWidth;
182+
(index === chips.length - 1 && width <= containerWidth) || this.paginationData
183+
? containerWidth
184+
: containerWidth - viewMoreBtnWidth;
183185
if (availableSpace >= width - chipMargin) {
184186
chipsToDisplay = (this.paginationData ? chipsToDisplay : index) + 1;
185187
lastIndex++;

0 commit comments

Comments
 (0)