Upgrade lazy loaded elements before setting config (#5944)
This commit is contained in:
parent
300c8d06c4
commit
28d26065e4
|
@ -126,6 +126,7 @@ const _lazyCreate = <T extends keyof CreateElementConfigTypes>(
|
|||
) as CreateElementConfigTypes[T]["element"];
|
||||
customElements.whenDefined(tag).then(() => {
|
||||
try {
|
||||
customElements.upgrade(element);
|
||||
// @ts-ignore
|
||||
element.setConfig(config);
|
||||
} catch (err) {
|
||||
|
|
Loading…
Reference in New Issue