File tree 4 files changed +13
-7
lines changed
integration-custom-element/src
4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"dependencies" : {
3
- "@merkur/preact" : " 0.35 .0"
3
+ "@merkur/preact" : " 0.36 .0"
4
4
},
5
5
"devDependencies" : {
6
6
"enzyme" : " 3.11.0" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"dependencies" : {
3
- "@merkur/svelte" : " 0.35 .0"
3
+ "@merkur/svelte" : " 0.36 .0"
4
4
},
5
5
"devDependencies" : {}
6
6
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"dependencies" : {
3
- "@merkur/uhtml" : " 0.35 .0"
3
+ "@merkur/uhtml" : " 0.36 .0"
4
4
},
5
5
"devDependencies" : {}
6
6
}
Original file line number Diff line number Diff line change @@ -59,10 +59,16 @@ function registerCustomElement(options) {
59
59
customElement : this ,
60
60
} ) ;
61
61
62
- ( await callbacks ?. remount ?. ( this . _widget , {
63
- shadow : this . _shadow ,
64
- customElement : this ,
65
- } ) ) ?? this . _shadow . appendChild ( widget . container ) ;
62
+ if ( typeof callbacks ?. remount === 'function' ) {
63
+ await callbacks ?. remount ?. ( this . _widget , {
64
+ shadow : this . _shadow ,
65
+ customElement : this ,
66
+ } ) ;
67
+ } else {
68
+ widget . root = this . _shadow ;
69
+ widget . customElement = this ;
70
+ this . _shadow . appendChild ( widget . container ) ;
71
+ }
66
72
67
73
return ;
68
74
}
You can’t perform that action at this time.
0 commit comments