mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(ionList): disable swiping of items while option buttons are shown
Addresses #1202
This commit is contained in:
3
js/angular/directive/list.js
vendored
3
js/angular/directive/list.js
vendored
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user