LocalHorst
LocalHorst

Reputation: 1168

Disable webkit's spin buttons on input type=“number” in AngularJS

This may sound like a duplicate question, as the answer for 'normal' Bootstrap seems to be

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

as explained in this Question.

This doesn't work for AngularJS though. Does anyone have a Solution?

Upvotes: 2

Views: 1255

Answers (1)

Rolwin Crasta
Rolwin Crasta

Reputation: 4339

try this works for both firefox and chrome

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

input[type=number] {
    -moz-appearance:textfield;
}

Upvotes: 2

Related Questions