I am creating some add to cart functionality that looks like this:
This all works great in the browser but not on a device (iOS or Android). Specifically, the decrement button does not work. Clicking it actually pops the keyboard for the input that is just to the right of it (where the number is). The other weird thing I’ve noticed is if I tap somewhere that’s not the input or button, it still pops the keyboard as if I was clicking on the input. Moving the decrement button next to the increment so both are to the right of the input works but looks bad. I’m pretty sure it has something to do with the item attributes but I can’t figure out what. I’ve tried so many different combinations of item-start, item-content and item-end but it never works. I’d rather not do it without using ion-item as I like the look and feel of it.
HTML is as follows
<ion-item no-lines>
<button ion-button>-</button>
<ion-input type="number" text-center></ion-input>
<button ion-button>+</button>
<button ion-button>Add to cart</button>
</ion-item>
What’s the ideal attribute combination for this type of layout? I’ve tried so many combinations but I can never get that decrement button to work on the left side. Any help is greatly appreciated as this has been driving me up the wall. Thanks!