Skip to content

Commit

Permalink
fix(ui5-segmentedbutton): import ui5-togglebutton by default (#1549)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifoosid authored Apr 28, 2020
1 parent b213b60 commit bccf03b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/main/src/SegmentedButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
import { fetchI18nBundle, getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js";
import ResizeHandler from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
import { SEGMENTEDBUTTON_ARIA_DESCRIPTION } from "./generated/i18n/i18n-defaults.js";
import ToggleButton from "./ToggleButton.js";

// Template
import SegmentedButtonTemplate from "./generated/templates/SegmentedButtonTemplate.lit.js";
Expand Down Expand Up @@ -93,7 +94,10 @@ class SegmentedButton extends UI5Element {
}

static async onDefine() {
await fetchI18nBundle("@ui5/webcomponents");
await Promise.all([
fetchI18nBundle("@ui5/webcomponents"),
ToggleButton.define(),
]);
}

constructor() {
Expand Down

0 comments on commit bccf03b

Please sign in to comment.