We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 864f7f7 commit 33225a7Copy full SHA for 33225a7
packages/calcite-components/src/components/chip-group/chip-group.tsx
@@ -197,10 +197,10 @@ export class ChipGroup implements InteractiveComponent {
197
private updateItems = (event?: Event): void => {
198
const target = event ? (event.target as HTMLSlotElement) : this.slotRefEl;
199
this.items = target
200
- .assignedElements({ flatten: true })
+ ?.assignedElements({ flatten: true })
201
.filter((el) => el?.matches("calcite-chip")) as HTMLCalciteChipElement[];
202
203
- this.items.forEach((el) => {
+ this.items?.forEach((el) => {
204
el.interactive = true;
205
el.scale = this.scale;
206
el.selectionMode = this.selectionMode;
0 commit comments