mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 18:57:01 +00:00
[Layout] Consistent input behavior
Inputs now consistently default to 0 when left empty
This commit is contained in:
parent
280c838735
commit
f992fcebe1
@ -162,7 +162,7 @@ define([
|
||||
"control": "textfield"
|
||||
},
|
||||
{
|
||||
"method": "y1",
|
||||
"property": "x1",
|
||||
"text": "X1",
|
||||
"name": "X1",
|
||||
"cssClass": "l-input-sm",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user