Skip to content

Commit

Permalink
fix(form-input): always return formatted value (#1839)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz authored and pi0 committed May 17, 2018
1 parent 557591d commit 77cc97b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/form-input/form-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@ export default {
methods: {
format (value, e) {
if (this.formatter) {
const formattedValue = this.formatter(value, e)
if (formattedValue !== value) {
return formattedValue
}
return this.formatter(value, e)
}
return value
},
Expand Down

0 comments on commit 77cc97b

Please sign in to comment.