[Layout] Consistent input behavior

Inputs now consistently default to 0 when left empty
This commit is contained in:
Doubek-Kraft 2017-06-23 10:57:50 -07:00 committed by Aaron Doubek-Kraft
parent 280c838735
commit f992fcebe1
2 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ define([
"control": "textfield"
},
{
"method": "y1",
"property": "x1",
"text": "X1",
"name": "X1",
"cssClass": "l-input-sm",

View File

@ -166,7 +166,7 @@ define(
ElementProxy.prototype.checkNumeric = function(value, current) {
// Allow field to be empty
if (value === ''){
return value;
return 0;
}
// Else, check if the input is integral, and not, return current value
// of the field