Skip to content

Commit 14067bd

Browse files
authored
fix(checkbox): async define of label (#115)
1 parent 0b20f27 commit 14067bd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/main/src/CheckBox.js

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import ValueState from "@ui5/webcomponents-base/src/sap/ui/webcomponents/base/ty
77
import ShadowDOM from "@ui5/webcomponents-base/src/sap/ui/webcomponents/base/compatibility/ShadowDOM";
88
import CheckBoxRenderer from "./build/compiled/CheckBoxRenderer.lit";
99
import CheckBoxTemplateContext from "./CheckBoxTemplateContext";
10+
import Label from "./Label";
1011

1112
// Styles
1213
import belize from "./themes/sap_belize/CheckBox.less";
@@ -214,6 +215,12 @@ class CheckBox extends WebComponent {
214215
static get calculateTemplateContext() {
215216
return CheckBoxTemplateContext.calculate;
216217
}
218+
219+
static async define(...params) {
220+
await Label.define();
221+
222+
super.define(...params);
223+
}
217224
}
218225

219226
Bootstrap.boot().then(_ => {

0 commit comments

Comments
 (0)