From 606ecd090e94ced65c76947c1de052c4ba709b68 Mon Sep 17 00:00:00 2001 From: shrpne Date: Mon, 11 Nov 2019 20:31:29 +0300 Subject: [PATCH] fix initial null value --- src/components/VueAutonumeric.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/VueAutonumeric.vue b/src/components/VueAutonumeric.vue index 3a06a1b..7bdad10 100644 --- a/src/components/VueAutonumeric.vue +++ b/src/components/VueAutonumeric.vue @@ -173,11 +173,9 @@ OTHER DEALINGS IN THE SOFTWARE. mounted() { // Initialize the autoNumeric element this.anElement = new AutoNumeric(this.$refs.autoNumericElement, this.initialOptions); - if (this.value !== null && this.value !== '') { - this.anElement.set(this.value); - // The `v-model` must be updated with that default value on startup - this.updateVModel(); //FIXME Send the `event.timeStamp` info here - } + this.anElement.set(this.value); + // The `v-model` must be updated with that default value on startup + this.updateVModel(); //FIXME Send the `event.timeStamp` info here }, computed: {