mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fixed null input value. Tweaked useReducer test harness.
This commit is contained in:
1 parent
bdf8065137
commit
290e8c6926
2 files changed
+5
-4
No files matched your search
@@ -221,7 +221,7 @@ export function EditableValue({
|
||||
type = 'number';
|
||||
}
|
||||
|
||||
let inputValue = value;
|
||||
let inputValue = value == null ? '' : value;
|
||||
if (hasPendingChanges) {
|
||||
inputValue = editableValue == null ? '' : editableValue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user