We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fe072c commit c1cbb8dCopy full SHA for c1cbb8d
packages/main/src/internal/withWebComponent.tsx
@@ -31,7 +31,24 @@ export interface WithWebComponentPropTypes extends CommonProps {
31
32
export function withWebComponent<T>(WebComponent): RefForwardingComponent<Ui5DomRef, T & WithWebComponentPropTypes> {
33
const getWebComponentMetadata = (): Ui5WebComponentMetadata => {
34
- return WebComponent.getMetadata();
+ if (WebComponent) {
35
+ return WebComponent.getMetadata();
36
+ }
37
+
38
+ return {
39
+ metadata: {
40
+ events: {}
41
+ },
42
+ getProperties() {
43
+ return {};
44
45
+ getSlots() {
46
47
48
+ getEvents() {
49
50
51
+ };
52
};
53
54
const getBooleanPropsFromMetadata = (): Array<string> => {
0 commit comments