fix(reorder): non ion-item elements can be reordered

the removed code was a premature optimization that does more harm than good

fixes #7339
This commit is contained in:
Manu Mtz.-Almeida
2016-07-18 16:56:56 +02:00
parent cac378f35b
commit ea9dd02b5b

View File

@ -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);
}