Ionic-framework: item-sliding stops working if the item-option is open and the list changes dynamically

Created on 14 Sep 2018  路  5Comments  路  Source: ionic-team/ionic-framework

Bug Report

item-sliding stops working if the item-option is open and the list changes dynamically (Observable async)

Ionic Info

Ionic:

   ionic (Ionic CLI)          : 4.1.2 (/usr/lib/node_modules/ionic)
   Ionic Framework            : @ionic/angular 4.0.0-beta.7
   @angular-devkit/core       : 0.7.5
   @angular-devkit/schematics : 0.7.5
   @angular/cli               : 6.1.5
   @ionic/ng-toolkit          : 1.0.8
   @ionic/schematics-angular  : 1.0.6

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : none
   Cordova Plugins       : no whitelisted plugins (0 plugins total)

System:

   NodeJS : v8.11.3 (/usr/bin/node)
   npm    : 6.4.0
   OS     : Linux 4.15

Describe the Bug
item-sliding stops working if the item-option is open and the list changes dynamically (Observable async)

Steps to Reproduce
Steps to reproduce the behavior:

  1. open an item-sliding and leave it open until you change the list that contains it (dynamically)

Expected Behavior
keep running normally

Additional Context

tested in the Chrome browser

core bug

Most helpful comment

If you force close all the slide items before/after the list changes, it should allow the item-option to continue to behave correctly. Ran into a similar scenario in my app, and calling slideItem.close() fixed future behavior.

All 5 comments

If you force close all the slide items before/after the list changes, it should allow the item-option to continue to behave correctly. Ran into a similar scenario in my app, and calling slideItem.close() fixed future behavior.

I this still an issue in beta.17?

Yes, having this issue still in beta.17.
Workaround right now:
_html_
<ion-list #List>...
_ts_
@ViewChild(List) list: List;
this.list.closeSlidingItems();

This was solved in the 4.0.2 release (latest is 4.1.1) please update! If you're still seeing this issue please let me know but I cannot reproduce it in latest, thanks!

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alan-agius4 picture alan-agius4  路  3Comments

brandyscarney picture brandyscarney  路  3Comments

fdnhkj picture fdnhkj  路  3Comments

manucorporat picture manucorporat  路  3Comments

SebastianGiro picture SebastianGiro  路  3Comments