@onehat/ui 0.3.190 → 0.3.192
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -763,6 +763,9 @@ export function ComboComponent(props) {
|
|
|
763
763
|
// Select it and set the value of the combo.
|
|
764
764
|
setGridSelection(selection);
|
|
765
765
|
setValue(entity.id);
|
|
766
|
+
} else {
|
|
767
|
+
// we're not changing the Combo's value, but we might still need to change its displayValue
|
|
768
|
+
setDisplayValue(entity.id);
|
|
766
769
|
}
|
|
767
770
|
if (onGridSave) {
|
|
768
771
|
onGridSave(selection);
|
|
@@ -40,14 +40,15 @@ function NumberElement(props) {
|
|
|
40
40
|
case 'ArrowUp':
|
|
41
41
|
onIncrement();
|
|
42
42
|
break;
|
|
43
|
-
case 'Tab':
|
|
44
|
-
case 'Backspace':
|
|
45
|
-
return;
|
|
46
|
-
break;
|
|
47
43
|
case 'Enter':
|
|
48
44
|
setValue(value);
|
|
49
45
|
break;
|
|
50
|
-
|
|
46
|
+
case 'ArrowLeft':
|
|
47
|
+
case 'ArrowRight':
|
|
48
|
+
case 'Tab':
|
|
49
|
+
case 'Backspace':
|
|
50
|
+
return;
|
|
51
|
+
default:
|
|
51
52
|
}
|
|
52
53
|
if (!key.match(/^[\-\d\.]*$/)) {
|
|
53
54
|
e.preventDefault(); // kill anything that's not a number
|