phiny1 / v-currency-field

The Vuetify Currency Field uses Vue Currency Input directive to create a currency component (<v-currency-field>)
https://phiny1.github.io/v-currency-field/
MIT License
60 stars 29 forks source link

Min option not working in directive mode #10

Closed eolant closed 4 years ago

eolant commented 5 years ago

Min not working in directive mode. When I changed input type to number, I got this error: vendors.app.js:9765 Uncaught DOMException: Failed to execute 'setSelectionRange' on 'HTMLInputElement': The input element's type ('number') does not support selection.

phiny1 commented 5 years ago

The directive comes from v-money. If you need just the directive you should use v-money.

I created v-currency-field to fix the problems when you put the directive in v-text-field from vuetify.

eolant commented 5 years ago

@phiny1 I used it as directive because v-currency-field isn't working with Vuetify 2.

phiny1 commented 5 years ago

@eolant published version 2.0.0 for vuetify 2

https://codepen.io/phiny1/pen/NWWrmma?editors=1111

eolant commented 5 years ago

@phiny1 great, but min option still not working. If I set 0 I expect values to be more than 0, but it allows it to be negative.

phiny1 commented 4 years ago

Fixed on 3.0.3 component, but if you need a directive, you can use vue currency input.

Read the guide to see the diferences of 3.0.3 version.

https://phiny1.github.io/v-currency-field/