Fixed null input value. Tweaked useReducer test harness.

This commit is contained in:
Brian Vaughn
2019-02-21 13:40:23 -08:00
parent bdf8065137
commit 290e8c6926
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ export function EditableValue({
type = 'number';
}
let inputValue = value;
let inputValue = value == null ? '' : value;
if (hasPendingChanges) {
inputValue = editableValue == null ? '' : editableValue;
}