This reverts commit 3c89afea4a.
This commit is contained in:
committed by
GitHub
parent
3c89afea4a
commit
f0105f0094
@@ -54,13 +54,13 @@ const ConfigurableRegistrationForm = (props) => {
|
||||
});
|
||||
|
||||
const handleOnChange = (event, countryValue = null) => {
|
||||
const { name } = event.target;
|
||||
const { name, type } = event.target;
|
||||
let value;
|
||||
if (countryValue) {
|
||||
value = { ...countryValue };
|
||||
} else {
|
||||
value = event.target.type === 'checkbox' ? event.target.checked : event.target.value;
|
||||
if (event.target.type === 'checkbox') {
|
||||
if (type === 'checkbox') {
|
||||
setFieldErrors(prevErrors => ({ ...prevErrors, [name]: '' }));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user