Skip to content

Commit ea9dd02

Browse files
committed
fix(reorder): non ion-item elements can be reordered
the removed code was a premature optimization that does more harm than good fixes #7339
1 parent cac378f commit ea9dd02

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/components/item/item-reorder-gesture.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,5 @@ export class ItemReorderGesture {
155155

156156
function itemForPosition(x: number, y: number): HTMLElement {
157157
let element = <HTMLElement>document.elementFromPoint(x, y);
158-
if (!element) {
159-
return null;
160-
}
161-
if (element.nodeName !== 'ION-ITEM' && !element.hasAttribute('ion-item')) {
162-
return null;
163-
}
164158
return findReorderItem(element);
165159
}

0 commit comments

Comments
 (0)