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:
Expected Behavior
keep running normally
Additional Context
tested in the Chrome browser
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.
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.