Skip to content

Commit

Permalink
fix(reorder): non ion-item elements can be reordered
Browse files Browse the repository at this point in the history
the removed code was a premature optimization that does more harm than good

fixes #7339
  • Loading branch information
manucorporat committed Jul 18, 2016
1 parent cac378f commit ea9dd02
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/components/item/item-reorder-gesture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,5 @@ export class ItemReorderGesture {

function itemForPosition(x: number, y: number): HTMLElement {
let element = <HTMLElement>document.elementFromPoint(x, y);
if (!element) {
return null;
}
if (element.nodeName !== 'ION-ITEM' && !element.hasAttribute('ion-item')) {
return null;
}
return findReorderItem(element);
}

0 comments on commit ea9dd02

Please sign in to comment.