Skip to content
Snippets Groups Projects
Commit c62d03ba authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Don't define an undefined scoped element

This is a bug, but the mixin just ignored undefined here.
The next version will be stricter and raises an error in this case.
parent e29a7a12
No related branches found
No related tags found
No related merge requests found
Pipeline #45606 passed
...@@ -13,16 +13,21 @@ export class DbpCommonDemo extends ScopedElementsMixin(LitElement) { ...@@ -13,16 +13,21 @@ export class DbpCommonDemo extends ScopedElementsMixin(LitElement) {
} }
static get scopedElements() { static get scopedElements() {
return { let elements = {
'dbp-icon': Icon, 'dbp-icon': Icon,
'dbp-mini-spinner': MiniSpinner, 'dbp-mini-spinner': MiniSpinner,
'dbp-spinner': Spinner, 'dbp-spinner': Spinner,
'dbp-button': Button, 'dbp-button': Button,
'dbp-loading-button': LoadingButton, 'dbp-loading-button': LoadingButton,
'dbp-auth': customElements.get('dbp-auth'),
'dbp-inline-notification': InlineNotification, 'dbp-inline-notification': InlineNotification,
'dbp-translated': Translated, 'dbp-translated': Translated,
}; };
if (customElements.get('dbp-auth')) {
elements['dbp-auth'] = customElements.get('dbp-auth');
}
return elements;
} }
static get properties() { static get properties() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment