mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-05 23:12:39 +00:00
prevent crash on input to second field. small css change
This commit is contained in:
@@ -65,7 +65,7 @@ const MetadataEditor = createClass({
|
||||
[name] : validationErr.length > 0 ? validationErr : undefined
|
||||
}
|
||||
}), ()=>{
|
||||
if(Object.values(this.state.errs ?? {}).filter(Boolean).length === 0){
|
||||
if(Object.values(this.state.errs ?? {}).filter(Boolean).length === 0 || !this.state.errs[name]){
|
||||
e.target.setCustomValidity('');
|
||||
this.props.onChange({
|
||||
...this.props.metadata,
|
||||
|
||||
Reference in New Issue
Block a user