-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ionic 4 / Angular: ion-item-option needs to be clicked twice #19564
Comments
Thanks for the issue. Can you provide a repo with the code required to reproduce this issue? I am unable to reproduce this issue using the code you have provided. |
sure thing: https://github.com/Sunny41/horses.git |
Can you provide some steps to reproduce? I'm not quite sure how to navigate your app. |
steps to reproduce
and that's it... I don't know what to change any more. the reaction of the button stays the same: it will only go to the function if I click twice. Sometimes, I have to click once, and sometimes twice. |
nevermind, the edit |
try it with this simple repository: https://github.com/Sunny41/example.git |
I have found an improvement. but this doesn't do its job reliable. The first 3-4 times it works with just one click. after that, I have to click twice. and it looks ugly as hell :D Buttons in an ion-item option are causing the problem. so at first I had:
and now:
still no solution, but better... |
I am also experiencing this issue. Unlike @Sunny41 mine is still requiring double clicks even without a button in the ion-item.
|
@alexmelville7 @Sunny41 I am trying to reproduce the issue but am not successful: https://stackblitz.com/edit/ionic-v4-angular-tabs-2bfhcu?file=src%2Fapp%2Ftab1%2Ftab1.page.html I even tried waiting for data (async) but was not able to reproduce. Please can you provide a repo so that we can look into this more. |
that's a state mutation problem. |
I'm having this same issue. Most of the time, I need to click twice to trigger the
@stewwan I don't see how that's a fix. Where would you even call |
Is someone able to provide a repo with the code required to reproduce this issue? |
https://angular.io/api/core/ChangeDetectorRef When you click something it must call detectChanges to trigger an update inside the ionic component |
@liamdebeasi I'll work on setting one up. @stewwan The problem we're having is when we click that "something," the click handler doesn't get called. You can't run |
Are you sure it’s not being called? Well I was facing the same and have fixed by triggering detection. too bad it doesn't work for you. |
@stewwan Yeah, I'm sure. I'll get a repo going so everyone can see what's going on. |
Thanks for the issue! This issue is being closed due to the lack of a reply. 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. Thank you for using Ionic! |
@liamdebeasi - it looks like this was closed and locked since we never got a repro repo. I have one here: https://github.com/ionic-team/tea-taster-angular
Note: the immediatly is important. If you give yourself a "normal human" length pause to digest what you are looking at before clicking on the button, then it works fine on the first click. It is only if you click immediately that the issue occurs. |
A minor update after further testing:
I suppose I could load up my screen with a bunch of fake data so it would actually scroll and see if it would actually occur then on Android, but I have not done that. It is likely easier to repro on iOS because of the bounce effect. |
Ionic 4 Angluar
I'm submitting a ...
[x ] bug report
[ ] feature request
Current behavior:
I have an ion-list with sliding items in it and crate these with a for loop.
You can click on the item itself and the router navigates to another page. When you slide an item, a button is revealed. and this Button needs to be clicked twice (at 90% of the time) to fire.
Expected behavior:
Click once to fire event (in my case: Open a Popup)
Related code:
also tried: (click) in the
<ion-item>
and the<ion-avatar>
tags. Same behaviour :(My ionic info:
The text was updated successfully, but these errors were encountered: