mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(item-sliding): add [ion-item] to the querySelector for dragging
fixes #513
This commit is contained in:
@@ -129,7 +129,7 @@ export class ItemSlidingGesture extends DragGesture {
|
||||
}
|
||||
|
||||
open(itemContainerEle, openAmount, animate) {
|
||||
let slidingEle = itemContainerEle.querySelector('ion-item');
|
||||
let slidingEle = itemContainerEle.querySelector('ion-item,[ion-item]');
|
||||
if (!slidingEle) return;
|
||||
|
||||
this.set(itemContainerEle, 'openAmount', openAmount);
|
||||
|
||||
Reference in New Issue
Block a user