IonReorder is not working in iOS

The code is working fine in a browser, but when I build the native project in xcode, once I start dragging the item it just freezes, and showing an error:

**------ STARTUP JS ERROR ------**

**⚡️ TypeError: e.selectionStart is not a function. (In 'e.selectionStart()', 'e.selectionStart' is undefined)**

**⚡️ URL: capacitor://localhost/static/js/5726.e89fffc0.chunk.js**

**⚡️ 5726.e89fffc0.chunk.js:1:1937**

**⚡️ See above for help with debugging blank-screen issues**

I looked for the file but I really couldn’t figure out what to do to fix this. I googled selectionStart but nothing is related to IonReorder.

And here is my code (which is working in a browser but not in iOS):

                    <IonReorderGroup disabled={false}
                        onIonItemReorder={(event) =>{
                            console.log('dragged');
                            event.detail.complete();
                        }}
                    >
                        <IonItem lines='none'>
                            <IonText className='text-small'>Item 1</IonText>
                            <IonReorder slot='end'>
                            </IonReorder>
                        </IonItem>
                        <IonItem lines='none'>
                            <IonText className='text-small'>Item 2</IonText>
                            <IonReorder slot='end'>
                            </IonReorder>
                        </IonItem>
                        <IonItem lines='none'>
                            <IonText className='text-small'>Item 3</IonText>
                            <IonReorder slot='end'>
                            </IonReorder>
                        </IonItem>
                    </IonReorderGroup>
1 Like

Hi @lnzhaotian,

Were you able to find a solution to this? I’m hitting the same issue.

Thanks,
Nolan

It had been a while. If I’m remembering correctly it was related to some conflict with another touch gesture listener. I restructured my UI to avoid swiping operations in the page for recording.