We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 787d5d9 commit d8f2d4eCopy full SHA for d8f2d4e
.gitignore
@@ -1,2 +1,4 @@
1
npm-debug.log
2
node_modules
3
+/.vscode
4
+/.idea
package.json
@@ -1,6 +1,6 @@
{
"name": "vue-numeric",
- "version": "1.2.4",
+ "version": "1.3.0",
"description": "Input field component to display currency value based on Vue.",
5
"author": "Kevin Ongko",
6
"main": "src/vue-numeric.vue",
src/vue-numeric.vue
@@ -224,9 +224,10 @@ export default {
224
}
225
},
226
227
- mounted () {
228
- // Apply default value if available.
229
- if (this.default) this.processValue(this.defaultValue)
+ watch: {
+ 'default' (val, old) {
+ this.processValue(this.defaultValue)
230
+ }
231
232
233
</script>
0 commit comments