From bf68ba66212734e061ecb43c19b967eaf7348583 Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Tue, 12 Feb 2019 18:02:02 -0500 Subject: [PATCH] Convert string 'NaN' to empty string --- js/components/text_input.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/components/text_input.js b/js/components/text_input.js index 506274a6..0f99f899 100644 --- a/js/components/text_input.js +++ b/js/components/text_input.js @@ -85,6 +85,9 @@ export default { }, onBlur: function(e) { + if (this.validation === 'dollars' && this.value === '$NaN') { + this.value = this.initialValue + } this._checkIfValid({ value: e.target.value, invalidate: true }) },