Ionic 4 - ion-input[type=number] arrow keys value not updating


#1

Hey there,

I have a strange problem. I have a simple ion-input (i even wrapped it in ion-item), which binds to a local variable. When I focus the element in the browser and change the value with the arrow keys (up/down), it updates the visual value in the visible INPUT field, but doesn’t update the variable itself. I tried utilizing (ionBlur), but that also has no effect. The only way for me to update the variable, is to type into the field

<ion-item>
   <ion-input type="number" [(ngModel)]="offset" text-center (ionBlur)="offset()"></ion-input>
</ion-item>