From f992fcebe1115ee47f3a277abe37489e189b34ba Mon Sep 17 00:00:00 2001 From: Doubek-Kraft Date: Fri, 23 Jun 2017 10:57:50 -0700 Subject: [PATCH] [Layout] Consistent input behavior Inputs now consistently default to 0 when left empty --- platform/features/fixed/bundle.js | 2 +- platform/features/layout/src/elements/ElementProxy.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/features/fixed/bundle.js b/platform/features/fixed/bundle.js index 3149c6a290..9d803b2f05 100644 --- a/platform/features/fixed/bundle.js +++ b/platform/features/fixed/bundle.js @@ -162,7 +162,7 @@ define([ "control": "textfield" }, { - "method": "y1", + "property": "x1", "text": "X1", "name": "X1", "cssClass": "l-input-sm", diff --git a/platform/features/layout/src/elements/ElementProxy.js b/platform/features/layout/src/elements/ElementProxy.js index 25f9f13e06..e3c8613ec9 100644 --- a/platform/features/layout/src/elements/ElementProxy.js +++ b/platform/features/layout/src/elements/ElementProxy.js @@ -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