vuetify-masked
Advanced tools
Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "vuetify-masked", | ||
"description": "vuetify masked textfield and filter", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"author": "Kim Mannstedt <k.mannstedt+dev@gmail.com>", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -7,3 +7,3 @@ import {clearValue} from './preparator' | ||
if(value != null) { | ||
if(value !== null && value !== '') { | ||
result += clearValue(value, charsToClear) | ||
@@ -10,0 +10,0 @@ if(type !== 'integer' && value !== '-' && value !== '+') { |
@@ -10,3 +10,3 @@ import { clearValue } from './preparator' | ||
let maskSuffix = '' | ||
if(value != null) { | ||
if(value !== null && value !== '') { | ||
let arrayValue = value.toString().split("") | ||
@@ -50,3 +50,3 @@ for(var i = 0; i < mask.length; i++) { | ||
if(value != null && value !== '-' && value !== '+') { | ||
if(value !== null && value !== '' && value !== '-' && value !== '+') { | ||
result = parseFloat(value).toLocaleString(locale, {minimumFractionDigits: precision, maximumFractionDigits: precision}) | ||
@@ -53,0 +53,0 @@ } else if (value === '-' || value === '+') { |
export function clearValue(value, charsToClear) { | ||
let result = '' | ||
if(value != null) { | ||
if(value !== null && value !== '') { | ||
let arrayValue = value.toString().split('') | ||
@@ -5,0 +5,0 @@ for(var i = 0; i < arrayValue.length; i++) { |
Sorry, the diff of this file is not supported yet
38730