(click) not recognized for first 3 seconds in views
Hello
Using Ionic 2.0.0-beta.35
I have a list of items displayed in a virtual scroll, or ngFor. Everything works fine in the browser, but when I put it on my ipad, the first tap on items in the list is not recognized. What's more, I have to wait approximately 1 second after the first tap, or the second tap will not work either.
Ok, I have some more info after more testing. Whenever I show a list, it takes about 3 seconds for the list to become responsive and (click) to be executed. The list has already rendered fine, so I don't know what the delay is about. I just did more testing and found that it takes about 3 seconds for (click) to start working! This is on an iPhone 6s so this is a serious problem.
Hello! Thanks for opening an issue with us! Would you mind putting the tappable attribute on your list items and see if that fixes the issue? Example
<ion-item tappable>
</ion-item>
Hello all! As it seems it has been a while since there was any activity on this issue i will be closing it for now. Feel free to comment if you are still running into this issue. Thanks for using Ionic!
Hello @jgw96 I am facing the same issue with a bit complex ion-item which has multiple clickable divs inside it. Inspite of adding tappable to individual div, 3 sec delay exists when coming back from details (previewInvoice(invoice)) to list. Please guide.
<ion-item *ngFor="let invoice of dateInvoiceList.invoiceList" class="transparentBg invoice-item no-padding" no-lines>
<div>
<div tappable class="payment-status" (click)="previewInvoice(invoice)">
<div class="status-text default {{invoice.Status | paymentstatus}}">
{{invoice.Status | paymentstatus | uppercase}}
</div>
<div class="status-line default {{invoice.Status | paymentstatus}}">
<hr />
</div>
</div>
<div class="payment-details">
<div tappable class="details-line-1" (click)="previewInvoice(invoice)">
<h2 class="billed-patient-name">{{invoice.PatientName}}</h2>
<h2 class="billed-amount">{{invoice.invoiceFee}}</h2>
</div>
<div class="clearfix"></div>
<div tappable class="request-reason" (click)="previewInvoice(invoice)">{{invoice.RequestReason}}</div>
<div class="secondary-buttons" *ngIf="invoice.Status === invoiceStaus.Pending">
<ion-grid class="no-padding">
<ion-row center>
<ion-col class="no-padding">
<div tappable icon-left (click)="sharePaymentLink(invoice.PatientName, invoice.PaymentLink, invoice.Id)" class="custom-button">
<ion-icon ios="ios-share-outline" md="md-share" class="middle-align"></ion-icon>
<span>Send</span>
</div>
</ion-col>
<ion-col class="no-padding side-margin-5">
<div tappable *ngIf="invoice.ReminderStatus >= reminderStatus.Reminder_1_Sent && invoice.ReminderStatus < reminderStatus.Late" (click)="showReminderSentConfirmationPromt(invoice)"
class="custom-button custom-button-count">
<span>Reminded</span>
<ion-badge item-right class="reminder-count">{{invoice.ReminderStatus | reminderstatus}}</ion-badge>
</div>
<div tappable *ngIf="invoice.ReminderStatus === reminderStatus.Late" (click)="showReminderSentConfirmationPromt(invoice)" class="custom-button custom-button-count late-button">
<span>Late</span>
</div>
</ion-col>
</ion-row>
</ion-grid>
</div>
</div>
</div>
</ion-item>
Hi, the tappable attribute solved the issue in my case. 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.