Fixed null input value. Tweaked useReducer test harness.

This commit is contained in:
Brian Vaughn committed 2019-02-21 13:40:23 -08:00
1 parent bdf8065137
commit 290e8c6926
2 files changed
+5 -4

No files matched your search

+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;
}