diff --git a/package.json b/package.json index 14375ea..ef4c984 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,18 @@ { - "name": "vuetify-numeric", - "version": "0.1.8", + "name": "kurob1993-vuetify-numeric", + "version": "0.0.4", "private": false, "description": "Numeric input components for use with vuetifyjs", "author": { - "name": "Aleksandr Kolesnikov", - "email": "alex.v.kolesnikov72@gmail.com" + "name": "Kurob", + "email": "Kurob1993@gmail.com" }, "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", "test:unit": "vue-cli-service test:unit", "lint": "vue-cli-service lint", - "lib": "vue-cli-service build --target lib 'src/components/index.ts'", + "lib": "vue-cli-service build --target lib src/components/index.ts", "publish": "npm run lib && node postbuild.js" }, "main": "vuetify-numeric.umd.min.js", @@ -48,7 +48,7 @@ "vue-template-compiler": "^2.6.11", "vuetify-loader": "^1.4.3" }, - "homepage": "https://github.com/kolesnikovav/vuetify-numeric", + "homepage": "https://github.com/kurob1993/vuetify-numeric", "jsdelivr": "vuetify-numeric.umd.min.js", "keywords": [ "vuetify", @@ -59,6 +59,6 @@ "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/kolesnikovav/vuetify-numeric.git" + "url": "git+https://github.com/kurob1993/vuetify-numeric.git" } } diff --git a/src/components/VNumeric/VNumeric.ts b/src/components/VNumeric/VNumeric.ts index 4516135..341a295 100644 --- a/src/components/VNumeric/VNumeric.ts +++ b/src/components/VNumeric/VNumeric.ts @@ -107,7 +107,7 @@ export default Vue.extend({ }, changeValue (val: string|number|undefined) { let result: number - if (val) { + if (Number(val) > -1) { if (this.computedPrecision > 0) { const p = Math.pow(10, this.computedPrecision) result = Math.round(Number(val) * p) / p