@@ -1015,6 +1015,10 @@ export const setupHostConfig = (): HostConfig<
1015
1015
} ,
1016
1016
1017
1017
insertBefore : function ( parentInstance , child , beforeChild ) {
1018
+ if ( isElementContainer ( child ) ) {
1019
+ parentInstance . children . add ( child )
1020
+ }
1021
+
1018
1022
parentInstance . element . insertBefore ( child . element , beforeChild . element )
1019
1023
} ,
1020
1024
@@ -1027,6 +1031,10 @@ export const setupHostConfig = (): HostConfig<
1027
1031
} ,
1028
1032
1029
1033
insertInContainerBefore : function ( container , child , beforeChild ) {
1034
+ if ( isElementContainer ( child ) ) {
1035
+ container . children . add ( child )
1036
+ }
1037
+
1030
1038
container . element . insertBefore ( child . element , beforeChild . element )
1031
1039
} ,
1032
1040
@@ -1061,25 +1069,55 @@ const cleanupElementContainer = (parent: ElementContainer, instance: ElementCont
1061
1069
instance . children . clear ( )
1062
1070
1063
1071
instance . className ?.( )
1072
+ instance . cx ?.( )
1073
+ instance . cy ?.( )
1074
+ instance . d ?.( )
1064
1075
instance [ 'data-droppable' ] ?.( )
1065
1076
instance [ 'data-narrate' ] ?.( )
1066
1077
instance [ 'data-narrate-as' ] ?.( )
1067
1078
instance [ 'data-narrate-after' ] ?.( )
1068
1079
instance [ 'data-narrate-before' ] ?.( )
1069
1080
instance [ 'data-testid' ] ?.( )
1070
1081
instance [ 'data-x-ray' ] ?.( )
1082
+ instance . fill ?.( )
1071
1083
instance . id ?.( )
1072
1084
instance . src ?.( )
1085
+ instance . height ?.( )
1073
1086
instance . href ?.( )
1074
1087
instance . target ?.( )
1075
1088
instance . autoPlay ?.( )
1076
1089
instance . loop ?.( )
1077
1090
instance . disabled ?.( )
1078
1091
instance . maxLength ?.( )
1092
+ instance . r ?.( )
1093
+ instance . rx ?.( )
1094
+ instance . ry ?.( )
1079
1095
instance . rows ?.( )
1080
- instance . value ?.( )
1096
+ instance . stroke ?.( )
1097
+ instance . strokeWidth ?.( )
1081
1098
instance . type ?.( )
1082
1099
instance . text ?.( )
1100
+ instance . value ?.( )
1101
+ instance . x ?.( )
1102
+ instance . x1 ?.( )
1103
+ instance . x2 ?.( )
1104
+ instance . width ?.( )
1105
+ instance . y ?.( )
1106
+ instance . y1 ?.( )
1107
+ instance . y2 ?.( )
1108
+ instance . viewBox ?.( )
1109
+ instance . xLinkHref ?.( )
1110
+ instance . fillOpacity ?.( )
1111
+ instance . strokeOpacity ?.( )
1112
+ instance . strokeLinecap ?.( )
1113
+ instance . strokeLinejoin ?.( )
1114
+ instance . points ?.( )
1115
+ instance . offset ?.( )
1116
+ instance . stopColor ?.( )
1117
+ instance . stopOpacity ?.( )
1118
+ instance . fontFamily ?.( )
1119
+ instance . fontSize ?.( )
1120
+ instance . cohinline ?.( )
1083
1121
}
1084
1122
1085
1123
const noop = ( ) => { }
0 commit comments