Skip to content

Commit

Permalink
fix(tile-select): ensure supporting components are auto-defined (#8648)
Browse files Browse the repository at this point in the history
**Related Issue:** #8495 

## Summary

This fixes an issue that prevented the Stencil build from including
supporting components from being auto-defined in the `components` output
target.
  • Loading branch information
jcfranco authored Jan 26, 2024
1 parent 4f454ef commit 2c27f40
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,11 @@ export class TileSelect implements InteractiveComponent, LoadableComponent {
// --------------------------------------------------------------------------

private renderInput(): void {
this.input = document.createElement(
this.type === "radio" ? "calcite-radio-button" : "calcite-checkbox",
);
this.input =
this.type === "radio"
? /* we need to call createElement(x) separately to ensure supporting components are properly bundled */
document.createElement("calcite-radio-button")
: document.createElement("calcite-checkbox");
this.input.checked = this.checked;
this.input.disabled = this.disabled;
this.input.hidden = this.el.hidden;
Expand Down

0 comments on commit 2c27f40

Please sign in to comment.