Skip to content

Commit ee37562

Browse files
Merge pull request autoNumeric#36 from shrpne/fix-initial-null-value
fix initial null value
2 parents 252d616 + 606ecd0 commit ee37562

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/components/VueAutonumeric.vue

+3-5
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,9 @@ OTHER DEALINGS IN THE SOFTWARE.
173173
mounted() {
174174
// Initialize the autoNumeric element
175175
this.anElement = new AutoNumeric(this.$refs.autoNumericElement, this.initialOptions);
176-
if (this.value !== null && this.value !== '') {
177-
this.anElement.set(this.value);
178-
// The `v-model` must be updated with that default value on startup
179-
this.updateVModel(); //FIXME Send the `event.timeStamp` info here
180-
}
176+
this.anElement.set(this.value);
177+
// The `v-model` must be updated with that default value on startup
178+
this.updateVModel(); //FIXME Send the `event.timeStamp` info here
181179
},
182180

183181
computed: {

0 commit comments

Comments
 (0)