Skip to content

Commit

Permalink
2.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinongko committed Oct 25, 2017
1 parent 376aa55 commit 1b11088
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/vue-numeric.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-numeric",
"version": "2.2.4",
"version": "2.2.5",
"description": "Input field component to display currency value based on Vue.",
"author": "Kevin Ongko",
"main": "dist/vue-numeric.min.js",
Expand Down
11 changes: 4 additions & 7 deletions src/vue-numeric.vue
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,10 @@ export default {
/**
* Watch for value change from other input with same v-model.
* @param {Number} newValue
* @param {Number} oldValue
*/
valueNumber (newValue, oldValue) {
if (this.amountNumber !== newValue && this.amountNumber === oldValue) {
this.amount = newValue
if (this.$refs.numeric !== document.activeElement) {
this.amount = this.format(newValue)
}
valueNumber (newValue) {
if (this.$refs.numeric !== document.activeElement) {
this.amount = this.format(newValue)
}
},
Expand All @@ -279,6 +275,7 @@ export default {
this.process(this.valueNumber)
this.amount = this.format(this.valueNumber)
},
/**
* Immediately reflect currency changes
*/
Expand Down

0 comments on commit 1b11088

Please sign in to comment.