fix(ionList): disable swiping of items while option buttons are shown

Addresses #1202
This commit is contained in:
Andy Joslin
2014-04-25 06:49:17 -06:00
parent a845ff3489
commit 81676e6ef7
3 changed files with 29 additions and 8 deletions

View File

@@ -134,6 +134,7 @@ function($animate, $timeout) {
if (!isShown && !wasShown) { return; }
if (isShown) listCtrl.closeOptionButtons();
listCtrl.canSwipeItems(!isShown);
$element.children().toggleClass('list-left-editing', isShown);
toggleNgHide('.item-delete.item-left-edit', isShown);
@@ -146,7 +147,7 @@ function($animate, $timeout) {
if (!isShown && !wasShown) { return; }
if (isShown) listCtrl.closeOptionButtons();
listCtrl.showReorder(isShown);
listCtrl.canSwipeItems(!isShown);
$element.children().toggleClass('list-right-editing', isShown);
toggleNgHide('.item-reorder.item-right-edit', isShown);