beckod
November 7, 2017, 3:26pm
1
Hello!.
I have a form with many options. Everything it’s working fine, but the two text inputs are not working properly.
I can only select them one time and then they get blocked…
This is part of my code.
<ion-card class="card_header">
<ion-card-header>
{{productName}}
</ion-card-header>
<ion-list>
<ion-item>
<ion-label fixed>Price$</ion-label>
<ion-input type="number" placeholder="Price" [(ngModel)]="shopPrice"></ion-input>
</ion-item>
<ion-item>
<ion-label fixed>SKU</ion-label>
<ion-input type="text" placeholder="SKU" [(ngModel)]="skuComp"></ion-input>
</ion-item>
<ion-item>
<ion-label>Worked</ion-label>
<ion-checkbox [(ngModel)]="workedCheck"></ion-checkbox>
</ion-item>
<ion-item>
<ion-label>No shopping</ion-label>
<ion-checkbox [(ngModel)]="noShopCheck"></ion-checkbox>
</ion-item>
<ion-item>
<ion-label>Same price</ion-label>
<ion-checkbox [(ngModel)]="samePriceCheck"></ion-checkbox>
</ion-item>
</ion-list>
</ion-card>
Thanks!
beckod
November 7, 2017, 7:11pm
2
In the login page I have the same issue… I can only select 1 or 2 times and the text inputs gets blocked
<ion-header>
<ion-navbar class="navBar" color="light">
<ion-title>
Shopping
</ion-title>
</ion-navbar>
<ion-toolbar color="primary">
<ion-title>
Inicio de sesión
</ion-title>
</ion-toolbar>
</ion-header>
<ion-content padding>
<ion-card>
<ion-list inset>
<ion-item>
<ion-input type="text" placeholder="User"></ion-input>
</ion-item>
<ion-item>
<ion-input type="password" placeholder="Pass"></ion-input>
</ion-item>
<ion-item>
<ion-label class="labelOff">Offline mode</ion-label>
<ion-toggle class="toggleOff" [(ngModel)]="isToggled" (ionChange)="notify()"></ion-toggle>
</ion-item>
</ion-list>
<button ion-button block strong color="danger" (click)="goToShoppingPage()">
Login
</button>
</ion-card>
</ion-content>
<ion-footer>
<button class="Parameters" ion-button block strong color="gris" [navPush]="parametrosPage">
Parámetros
</button>
</ion-footer>
thanks in advance!
beckod
November 7, 2017, 8:56pm
3
Hey guys, thanks for reading.
The problems is the
If I remove the ion-item, I can select many times the ion-input.
Is there any way to solve this?
Thanks
I am having the same issue. Ion-input can only be selected one time if its inside an ion-item, then is just blocked.
faio
November 10, 2017, 3:36pm
5
i am having the same issue, Some workaround??
I had a similar issue on Android but not iPhone after selecting, then deselecting an <ion-input>
it would not let me reselect. Inspecting the HTML, I saw that there was a <div>
blocking the input element with the class .input-cover
. I solved this by adding this to my app.scss
:
.input-cover {
pointer-events: auto;
}
4 Likes