Skip to content

Commit 734a100

Browse files
committed
Fix disappearing default value
1 parent d8f2d4e commit 734a100

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-numeric",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "Input field component to display currency value based on Vue.",
55
"author": "Kevin Ongko",
66
"main": "src/vue-numeric.vue",

src/vue-numeric.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ export default {
228228
'default' (val, old) {
229229
this.processValue(this.defaultValue)
230230
}
231+
},
232+
233+
mounted () {
234+
if (this.defaultValue) this.processValue(this.defaultValue)
231235
}
232236
}
233237
</script>

0 commit comments

Comments
 (0)