mirror of
https://github.com/nasa/openmct.git
synced 2025-05-02 16:53:24 +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"
|
"control": "textfield"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"method": "y1",
|
"property": "x1",
|
||||||
"text": "X1",
|
"text": "X1",
|
||||||
"name": "X1",
|
"name": "X1",
|
||||||
"cssClass": "l-input-sm",
|
"cssClass": "l-input-sm",
|
||||||
|
@ -166,7 +166,7 @@ define(
|
|||||||
ElementProxy.prototype.checkNumeric = function(value, current) {
|
ElementProxy.prototype.checkNumeric = function(value, current) {
|
||||||
// Allow field to be empty
|
// Allow field to be empty
|
||||||
if (value === ''){
|
if (value === ''){
|
||||||
return value;
|
return 0;
|
||||||
}
|
}
|
||||||
// Else, check if the input is integral, and not, return current value
|
// Else, check if the input is integral, and not, return current value
|
||||||
// of the field
|
// of the field
|
||||||
|
Loading…
x
Reference in New Issue
Block a user