@@ -116,7 +116,7 @@ export class ElementPool {
116
116
kind : kind ,
117
117
params : JSON . parse ( JSON . stringify ( el_class ?. defaults ) ) ,
118
118
position : pos || { x : 0 , y : 0 } ,
119
- zindex : zindex === undefined ? 10 : zindex ,
119
+ zindex : zindex === undefined ? 10 : zindex
120
120
} ;
121
121
this . items . push ( el ) ;
122
122
return el ;
@@ -184,7 +184,7 @@ export class ElementPool {
184
184
kind : el . kind ,
185
185
params : JSON . parse ( JSON . stringify ( el . params ) ) ,
186
186
position : JSON . parse ( JSON . stringify ( el . position ) ) ,
187
- zindex : el . zindex ,
187
+ zindex : el . zindex
188
188
} ;
189
189
} ) ;
190
190
}
@@ -211,7 +211,7 @@ export const DisplayElements = ({
211
211
onActionFail,
212
212
cur_offset,
213
213
viewport_scrolled,
214
- forceUpdate,
214
+ forceUpdate
215
215
} : {
216
216
element_pool : ElementPool ;
217
217
onMouseDown ?: ( e : any , element : DElement ) => void ;
@@ -274,7 +274,7 @@ export const DisplayElements = ({
274
274
const Viewer = element_class ?. Viewer || DefaultViewer ;
275
275
let el_view = (
276
276
< >
277
- < ErrorBoundary >
277
+ < ErrorBoundary element_class = { el . kind } >
278
278
< Viewer
279
279
kind = { el . kind }
280
280
dragged = { dragged || viewport_scrolled }
@@ -320,7 +320,7 @@ export const DisplayElements = ({
320
320
style = { {
321
321
left : el . position . x - cur_offset . x - ( selected ? 2 : 0 ) ,
322
322
top : el . position . y - cur_offset . y - ( selected ? 2 : 0 ) ,
323
- zIndex : el . zindex ,
323
+ zIndex : el . zindex
324
324
} }
325
325
{ ...doubleTapOpenSideBar }
326
326
>
0 commit comments