@@ -18,7 +18,7 @@ const renderChildren = (children: ChildElement[]) => {
18
18
if ( name === '' ) child . name = state . components [ typeId - 1 ] . name ;
19
19
// A DirectChildComponent is an instance of a top level component
20
20
// This component will render IndirectChild components (div/components rendered inside a child component)
21
- // Removed style from prop drills so that styling isn't applied to canvas items.
21
+ // Removed style from prop drills so that styling isn't applied to canvas items.
22
22
// Also added keys & removed an unnecessary div around DirChildNestables that were causing errors.
23
23
if ( type === 'Component' ) {
24
24
return (
@@ -34,7 +34,7 @@ const renderChildren = (children: ChildElement[]) => {
34
34
}
35
35
// ommitted orderedlists, unorderedlists, and menus, ommitted li items as non-nestable types because they can be nested within.
36
36
// child is a non-nestable type of HTML element (everything except for divs and forms)
37
- else if ( type === 'HTML Element' && typeId !== 11 && typeId !== 1000 && typeId !== 2 && typeId !== 3 && typeId !== 14 && typeId !== 15 && typeId !== 16 && typeId != 17 ) {
37
+ else if ( type === 'HTML Element' && typeId !== 11 && typeId !== 1000 && typeId !== 2 && typeId !== 3 && typeId !== 14 && typeId !== 15 && typeId !== 16 && typeId != 17 && typeId != - 1 ) {
38
38
return (
39
39
< DirectChildHTML
40
40
childId = { childId }
@@ -48,8 +48,8 @@ const renderChildren = (children: ChildElement[]) => {
48
48
}
49
49
// Added Orderedlists, Unorderedlists, and Menus, changed lists to nestable because they are nestable.
50
50
// child is a nestable type of HTML element (divs and forms)
51
- else if ( type === 'HTML Element' && ( typeId === 11 || typeId === 2 || typeId === 3 || typeId === 14 || typeId === 15 || typeId === 16 || typeId === 17 ) ) {
52
- return (
51
+ else if ( type === 'HTML Element' && ( typeId === 11 || typeId === 2 || typeId === 3 || typeId === 14 || typeId === 15 || typeId === 16 || typeId === 17 || typeId === - 1 ) ) {
52
+ return (
53
53
< DirectChildHTMLNestable
54
54
childId = { childId }
55
55
type = { type }
0 commit comments