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:
@@ -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