mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user