Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: describe all dependencies for some components #4807

Merged
merged 1 commit into from
Feb 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/main/src/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import "@ui5/webcomponents-icons/dist/sys-enter-2.js";
import "@ui5/webcomponents-icons/dist/information.js";
import InputType from "./types/InputType.js";
import Popover from "./Popover.js";
import Icon from "./Icon.js";
// Templates
import InputTemplate from "./generated/templates/InputTemplate.lit.js";
import InputPopoverTemplate from "./generated/templates/InputPopoverTemplate.lit.js";
Expand Down Expand Up @@ -1504,7 +1505,7 @@ class Input extends UI5Element {
static get dependencies() {
const Suggestions = getFeature("InputSuggestions");

return [Popover].concat(Suggestions ? Suggestions.dependencies : []);
return [Popover, Icon].concat(Suggestions ? Suggestions.dependencies : []);
}

static async onDefine() {
Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/Panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { getAnimationMode } from "@ui5/webcomponents-base/dist/config/AnimationM
import { getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js";
import "@ui5/webcomponents-icons/dist/slim-arrow-right.js";
import Button from "./Button.js";
import Icon from "./Icon.js";
import TitleLevel from "./types/TitleLevel.js";
import PanelAccessibleRole from "./types/PanelAccessibleRole.js";
import PanelTemplate from "./generated/templates/PanelTemplate.lit.js";
Expand Down Expand Up @@ -456,7 +457,7 @@ class Panel extends UI5Element {
}

static get dependencies() {
return [Button];
return [Button, Icon];
}

static async onDefine() {
Expand Down