You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.x
Current Behavior
When you click on an ion-input with attribute (click)="function", this function is called twice when you click on the label within that ion-input. When you click on the value it is called once (as it should).
Expected Behavior
That the function would only be called once when you click on the label within the ion-input
<ion-list>
<ion-item>
<ion-input label="Input with value" value="121 S Pinckney St #300" (click)="clicked()"></ion-input>
</ion-item>
<ion-item>
<ion-input labelPlacement="floating" label="Input with value" value="121 S Pinckney St #300" (click)="clicked()"></ion-input>
</ion-item>
</ion-list>
Clicking on the label within the ion-input calls the function clicked() twice.
Prerequisites
Ionic Framework Version
v8.x
Current Behavior
When you click on an ion-input with attribute (click)="function", this function is called twice when you click on the label within that ion-input. When you click on the value it is called once (as it should).
Expected Behavior
That the function would only be called once when you click on the label within the ion-input
Steps to Reproduce
Stackblitz
Code Reproduction URL
https://stackblitz.com/edit/ubs56gug?file=src%2Fapp%2Fexample.component.html
Ionic Info
Its ionic from the current stackblitz config used in the docs, from package.json:
Additional Information
Adding event.preventDefault(); can be used as a dirty fix untill this issue gets resolved.
The text was updated successfully, but these errors were encountered: