Skip to content

Commit 1b11088

Browse files
committed
2.2.5
1 parent 376aa55 commit 1b11088

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

dist/vue-numeric.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-numeric",
3-
"version": "2.2.4",
3+
"version": "2.2.5",
44
"description": "Input field component to display currency value based on Vue.",
55
"author": "Kevin Ongko",
66
"main": "dist/vue-numeric.min.js",

src/vue-numeric.vue

+4-7
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,10 @@ export default {
248248
/**
249249
* Watch for value change from other input with same v-model.
250250
* @param {Number} newValue
251-
* @param {Number} oldValue
252251
*/
253-
valueNumber (newValue, oldValue) {
254-
if (this.amountNumber !== newValue && this.amountNumber === oldValue) {
255-
this.amount = newValue
256-
if (this.$refs.numeric !== document.activeElement) {
257-
this.amount = this.format(newValue)
258-
}
252+
valueNumber (newValue) {
253+
if (this.$refs.numeric !== document.activeElement) {
254+
this.amount = this.format(newValue)
259255
}
260256
},
261257
@@ -279,6 +275,7 @@ export default {
279275
this.process(this.valueNumber)
280276
this.amount = this.format(this.valueNumber)
281277
},
278+
282279
/**
283280
* Immediately reflect currency changes
284281
*/

0 commit comments

Comments
 (0)