Skip to content

Commit

Permalink
feat(pie-checkbox-group): DSW-1937 making _slottedChildren query opti…
Browse files Browse the repository at this point in the history
…onal
  • Loading branch information
dandel10n committed Jul 26, 2024
1 parent f258fb4 commit fd58cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/pie-checkbox-group/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class PieCheckboxGroup extends FormControlMixin(RtlMixin(LitElement)) imp
@property({ type: Boolean, reflect: true })
public disabled = defaultProps.disabled;

@queryAssignedElements({ selector: 'pie-checkbox' }) _slottedChildren!: Array<HTMLElement>;
@queryAssignedElements({ selector: 'pie-checkbox' }) _slottedChildren: Array<HTMLElement> | undefined;

private _handleDisabled () : void {
this._slottedChildren?.forEach((child) => child.dispatchEvent(new CustomEvent(ON_CHECKBOX_GROUP_DISABLED, {
Expand Down

0 comments on commit fd58cdc

Please sign in to comment.