vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Feature Request] Remove spin-button for v-text-field type number

Open ghost opened this issue 7 years ago • 8 comments

Problem to solve

If you add the "type = 'number'" Parameter to your v-text-field there are always spin-buttons, which destroy the beautiful vuetify-page. (IMHO)

A lot people need this feature and it's way better using a parameter (or whatever) then always modifying the CSS-Sheet.

Proposed solution

There is a way using CSS: https://codepen.io/paulpv/pen/mxzwoq

(It's not my codepen, it's one of the first I found when i googled for the feature)

ghost avatar Jan 15 '19 09:01 ghost

Thank you

chaule97 avatar Jun 29 '19 05:06 chaule97

Any updates about this feature request?

vinicius182 avatar Sep 07 '19 05:09 vinicius182

Any updates about this feature request?

I couldn't find any updates, but weirdly only this worked for me

.v-input .v-input__control .v-input__slot .v-text-field__slot input::-webkit-outer-spin-button, .v-input .v-input__control .v-input__slot .v-text-field__slot input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

If your v-input has a custom class, you can use it instead of using ".v-input" class in the CSS.

azurramas avatar Apr 22 '20 19:04 azurramas

this works fine

::v-deep input::-webkit-outer-spin-button, ::v-deep input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

jarvilito1234 avatar Jun 03 '20 05:06 jarvilito1234

I think it could be good with just a prop like 'hide-arrow' or 'show-arrow'

BaptisteCool avatar Jul 06 '20 09:07 BaptisteCool

/* Chrome, Safari, Edge, Opera */ input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

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

kp2356 avatar Oct 28 '20 20:10 kp2356

I tried this, but it doesn't seem to work. What am i doing wrong ? vuetify playground

3aluw avatar Jul 28 '23 19:07 3aluw

This was added to v2 and has not been ported over to v3... yet.

blalan05 avatar Jul 28 '23 19:07 blalan05