How to remove the arrow keys on the right side of ion-input type="number"?

Hi guys, I just wanted to know on how to remove the arrow keys called spinner on the right side of ion-input type=“number”.

Here is my code:

    <ion-label position="floating">Height</ion-label>
    <ion-input id="height" type="number" placeholder="cm" required></ion-input>

This is the sample output


Another thing, does the ion-input with type=“number” support float value? Thanks

This is going to be a pretty huge PITA, both due to the fact that it’s going to depend on the underlying browser and that you’re going to have to fight with the shadow DOM. I would recommend against using type="number" if the spinner bothers you that much.

Yes. Remember JavaScript has only floating-point numbers.

Put this in your scss file

input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
margin: 0;

Last thing, do you think that if this application executed via phone, the spinner (arrow keys) will be remove?

Noted, i will try this one. Wait a little bit.

I’m not sure that would work in Safari, but even then you’re going to lose the battle with the shadow DOM, I think.

I have tested this in safari and in both android and iOS devices.

1 Like

Hi guys, when i try to run the app in real device the arrow keys removed. :slight_smile:

It’s work on the mobile device, but the spinner still showing in the browser (chrome)