bug: ion-item-sliding not working as expected
See original GitHub issueBug Report
Ionic version:
[x] 4.12.0
Current behavior: When sliding an item to the left, the item slides, but the ion-item-options appears immediately (no sliding). It also appears when sliding to the right.
Expected behavior: The ion-item-options should slide with the ion-item (like iOS does when deleting an item).
Steps to reproduce: Issue can be reproduced with code attached below.
Related code:
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-back-button></ion-back-button>
</ion-buttons>
<ion-title>Notifications</ion-title>
</ion-toolbar>
</ion-header>
<ion-content padding>
<ion-list>
<!-- Sliding item with icon start options on end side -->
<ion-item-sliding>
<ion-item>
<ion-label>
Sliding Item, Icons Start
</ion-label>
</ion-item>
<ion-item-options>
<ion-item-option color="primary">
<ion-icon slot="start" name="more"></ion-icon>
More
</ion-item-option>
<ion-item-option color="secondary">
<ion-icon slot="start" name="archive"></ion-icon>
Archive
</ion-item-option>
</ion-item-options>
</ion-item-sliding>
</ion-list>
</ion-content>
Other information:
Ionic info:
Ionic:
ionic (Ionic CLI) : 4.12.0 (/home/jean/.nvm/versions/node/v10.15.2/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.1.1
@angular-devkit/build-angular : 0.13.5
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.3.5
@ionic/angular-toolkit : 1.4.0
Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 15 other plugins)
System:
Android SDK Tools : 26.1.1 (/home/jean/Android/Sdk)
NodeJS : v10.15.2 (/home/jean/.nvm/versions/node/v10.15.2/bin/node)
npm : 6.4.1
OS : Linux 4.15
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Ion-item-sliding not working for list! - ionic-v3
It appears to me that with and without of it the result is the same. I also tried {{course.CourseName}}, none of the items...
Read more >Ionic Item Sliding ngIf Issue - angular - Stack Overflow
For the trip's status, there is an ion-item-sliding element that allows the user to do some action based on the status.
Read more >[Solved]-async ngIf / Angular is not working as expected-rx.js
<ion-list radio-group [(ngModel)]="budgetGroup" *ngIf="budgetGroups$ | async; let bg;else loading"> <ion-item-sliding *ngFor="let b of bg ...
Read more >Test Driven Development in Ionic: Services and Templates
The WishlistService does not exist, and the CSS selector is wrong because we aren't ... Error: Expected [ Object({ title: 'Test Product', ...
Read more >Developers - [Ionic 4.0.0-beta.13] <ion-reorder-group> not ...
[Ionic 4.0.0-beta.13] <ion-reorder-group> not working for <ion-item-sliding> with <ion-item-options>. driftyco.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, it works perfectly now 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.