@@ -1021,6 +1021,10 @@ export const setupHostConfig = (): HostConfig<
1021
1021
} ,
1022
1022
1023
1023
insertBefore : function ( parentInstance , child , beforeChild ) {
1024
+ if ( isElementContainer ( child ) ) {
1025
+ parentInstance . children . add ( child )
1026
+ }
1027
+
1024
1028
parentInstance . element . insertBefore ( child . element , beforeChild . element )
1025
1029
} ,
1026
1030
@@ -1033,6 +1037,10 @@ export const setupHostConfig = (): HostConfig<
1033
1037
} ,
1034
1038
1035
1039
insertInContainerBefore : function ( container , child , beforeChild ) {
1040
+ if ( isElementContainer ( child ) ) {
1041
+ container . children . add ( child )
1042
+ }
1043
+
1036
1044
container . element . insertBefore ( child . element , beforeChild . element )
1037
1045
} ,
1038
1046
@@ -1101,25 +1109,55 @@ const cleanupElementContainer = (parent: ElementContainer, instance: ElementCont
1101
1109
instance . children . clear ( )
1102
1110
1103
1111
instance . className ?.( )
1112
+ instance . cx ?.( )
1113
+ instance . cy ?.( )
1114
+ instance . d ?.( )
1104
1115
instance [ 'data-droppable' ] ?.( )
1105
1116
instance [ 'data-narrate' ] ?.( )
1106
1117
instance [ 'data-narrate-as' ] ?.( )
1107
1118
instance [ 'data-narrate-after' ] ?.( )
1108
1119
instance [ 'data-narrate-before' ] ?.( )
1109
1120
instance [ 'data-testid' ] ?.( )
1110
1121
instance [ 'data-x-ray' ] ?.( )
1122
+ instance . fill ?.( )
1111
1123
instance . id ?.( )
1112
1124
instance . src ?.( )
1125
+ instance . height ?.( )
1113
1126
instance . href ?.( )
1114
1127
instance . target ?.( )
1115
1128
instance . autoPlay ?.( )
1116
1129
instance . loop ?.( )
1117
1130
instance . disabled ?.( )
1118
1131
instance . maxLength ?.( )
1132
+ instance . r ?.( )
1133
+ instance . rx ?.( )
1134
+ instance . ry ?.( )
1119
1135
instance . rows ?.( )
1120
- instance . value ?.( )
1136
+ instance . stroke ?.( )
1137
+ instance . strokeWidth ?.( )
1121
1138
instance . type ?.( )
1122
1139
instance . text ?.( )
1140
+ instance . value ?.( )
1141
+ instance . x ?.( )
1142
+ instance . x1 ?.( )
1143
+ instance . x2 ?.( )
1144
+ instance . width ?.( )
1145
+ instance . y ?.( )
1146
+ instance . y1 ?.( )
1147
+ instance . y2 ?.( )
1148
+ instance . viewBox ?.( )
1149
+ instance . xLinkHref ?.( )
1150
+ instance . fillOpacity ?.( )
1151
+ instance . strokeOpacity ?.( )
1152
+ instance . strokeLinecap ?.( )
1153
+ instance . strokeLinejoin ?.( )
1154
+ instance . points ?.( )
1155
+ instance . offset ?.( )
1156
+ instance . stopColor ?.( )
1157
+ instance . stopOpacity ?.( )
1158
+ instance . fontFamily ?.( )
1159
+ instance . fontSize ?.( )
1160
+ instance . cohinline ?.( )
1123
1161
}
1124
1162
1125
1163
const noop = ( ) => { }
0 commit comments