@@ -6,6 +6,7 @@ import { hapticSelectionChanged, hapticSelectionEnd, hapticSelectionStart } from
66
77import { getIonMode } from '../../global/ionic-global' ;
88import type { Gesture , GestureDetail } from '../../interface' ;
9+ import type { HTMLStencilElement } from '../../utils/element-interface' ;
910
1011import type { ItemReorderEventDetail , ReorderMoveEventDetail , ReorderEndEventDetail } from './reorder-group-interface' ;
1112
@@ -38,7 +39,7 @@ export class ReorderGroup implements ComponentInterface {
3839
3940 @State ( ) state = ReorderGroupState . Idle ;
4041
41- @Element ( ) el ! : HTMLElement ;
42+ @Element ( ) el ! : HTMLStencilElement ;
4243
4344 /**
4445 * If `true`, the reorder will be hidden.
@@ -152,7 +153,7 @@ export class ReorderGroup implements ComponentInterface {
152153 const heights = this . cachedHeights ;
153154 heights . length = 0 ;
154155 const el = this . el ;
155- const children : any = el . children ;
156+ const children : any = el . __children ;
156157 if ( ! children || children . length === 0 ) {
157158 return ;
158159 }
@@ -258,7 +259,7 @@ export class ReorderGroup implements ComponentInterface {
258259 private completeReorder ( listOrReorder ?: boolean | any [ ] ) : any {
259260 const selectedItemEl = this . selectedItemEl ;
260261 if ( selectedItemEl && this . state === ReorderGroupState . Complete ) {
261- const children = this . el . children as any ;
262+ const children : any = this . el . __children ;
262263 const len = children . length ;
263264 const toIndex = this . lastToIndex ;
264265 const fromIndex = indexForItem ( selectedItemEl ) ;
@@ -308,7 +309,7 @@ export class ReorderGroup implements ComponentInterface {
308309 /********* DOM WRITE ********* */
309310 private reorderMove ( fromIndex : number , toIndex : number ) {
310311 const itemHeight = this . selectedItemHeight ;
311- const children = this . el . children ;
312+ const children : any = this . el . __children ;
312313 for ( let i = 0 ; i < children . length ; i ++ ) {
313314 const style = ( children [ i ] as any ) . style ;
314315 let value = '' ;
0 commit comments