Skip to content

Commit

Permalink
fix(datepicker): add explicit component dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
dpellier committed Dec 15, 2023
1 parent 9da5056 commit 6d9cef7
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ export class OsdsDatepicker implements OdsDatepickerAttribute, OdsDatepickerEven
this.updateSiblingsMonthDaysVisibility();
}

componentWillLoad(): void {
// Those components are used in some string templates, not JSX,
// thus Stencil does not detect them correctly and they're not embedded in the build,
// so we have to manually declare their usage here
h('osds-icon');
}

emitBlur(): void {
this.odsDatepickerBlur.emit();
}
Expand Down

0 comments on commit 6d9cef7

Please sign in to comment.