@@ -153,7 +153,7 @@ export class ReorderGroup implements ComponentInterface {
153
153
const heights = this . cachedHeights ;
154
154
heights . length = 0 ;
155
155
const el = this . el ;
156
- const children : any = el . __children ;
156
+ const children : any = el . __children || el . children ;
157
157
if ( ! children || children . length === 0 ) {
158
158
return ;
159
159
}
@@ -259,7 +259,7 @@ export class ReorderGroup implements ComponentInterface {
259
259
private completeReorder ( listOrReorder ?: boolean | any [ ] ) : any {
260
260
const selectedItemEl = this . selectedItemEl ;
261
261
if ( selectedItemEl && this . state === ReorderGroupState . Complete ) {
262
- const children : any = this . el . __children ;
262
+ const children : any = this . el . __children || this . el . children ;
263
263
const len = children . length ;
264
264
const toIndex = this . lastToIndex ;
265
265
const fromIndex = indexForItem ( selectedItemEl ) ;
@@ -309,7 +309,7 @@ export class ReorderGroup implements ComponentInterface {
309
309
/********* DOM WRITE ********* */
310
310
private reorderMove ( fromIndex : number , toIndex : number ) {
311
311
const itemHeight = this . selectedItemHeight ;
312
- const children : any = this . el . __children ;
312
+ const children : any = this . el . __children || this . el . children ;
313
313
for ( let i = 0 ; i < children . length ; i ++ ) {
314
314
const style = ( children [ i ] as any ) . style ;
315
315
let value = '' ;
0 commit comments