Skip to content

Commit

Permalink
fix zeros not saving on text inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Farrell authored and Farrell committed Aug 16, 2018
1 parent 5e2bf88 commit bd9bc29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inputs/text.vue
Expand Up @@ -110,7 +110,7 @@
// every time the value of the input changes, update the store
update(val) {
if (this.isNumerical) {
val = parseFloat(val, 10);
val = parseFloat(val === '' ? 0 : val);
} else if (_.isString(val)) {
// remove 'line separator' and 'paragraph separator' characters from text inputs
// (not visible in text editors, but get added when pasting from pdfs and old systems)
Expand Down

0 comments on commit bd9bc29

Please sign in to comment.