File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @enhance/custom-element-mixin" ,
3
- "version" : " 1.2.3-next.0 " ,
3
+ "version" : " 1.2.2 " ,
4
4
"description" : " Custom Element mixin that enables the reuse of single file components" ,
5
5
"main" : " index.mjs" ,
6
6
"scripts" : {
29
29
"morphdom" : " ^2.7.2" ,
30
30
"npm-run-all" : " ^4.1.5" ,
31
31
"playwright" : " ^1.44.0"
32
+ },
33
+ "dependencies" : {
34
+ "@enhance/morphdom-mixin" : " ^1.1.3-next.0"
32
35
}
33
36
}
Original file line number Diff line number Diff line change 52
52
? this . shadowRoot
53
53
: this
54
54
55
- const slotEl = document . createElement ( 'div' )
56
- const slottedElements = root . querySelectorAll ( '[slot=""]' )
57
- for ( const value of slottedElements . values ( ) ) {
58
- slotEl . appendChild ( value )
55
+ if ( ! this . shadowRoot ) {
56
+ const slotEl = document . createElement ( 'div' )
57
+ const slottedElements = root . querySelectorAll ( '[slot=""]' )
58
+ for ( const value of slottedElements . values ( ) ) {
59
+ slotEl . appendChild ( value )
60
+ }
61
+ updated . innerHTML = this . expandSlots ( slotEl . innerHTML , updated . innerHTML )
59
62
}
60
- updated . innerHTML = this . expandSlots ( slotEl . innerHTML , updated . innerHTML )
61
63
62
64
morphdom (
63
65
root ,
You can’t perform that action at this time.
0 commit comments