diff --git a/client/homebrew/editor/metadataEditor/metadataEditor.jsx b/client/homebrew/editor/metadataEditor/metadataEditor.jsx index e095d1c6c..47110c097 100644 --- a/client/homebrew/editor/metadataEditor/metadataEditor.jsx +++ b/client/homebrew/editor/metadataEditor/metadataEditor.jsx @@ -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, diff --git a/client/homebrew/editor/metadataEditor/metadataEditor.less b/client/homebrew/editor/metadataEditor/metadataEditor.less index a852ad41b..f0974fb6c 100644 --- a/client/homebrew/editor/metadataEditor/metadataEditor.less +++ b/client/homebrew/editor/metadataEditor/metadataEditor.less @@ -46,6 +46,9 @@ background : #ffb9b9; } } + input[type='text'], textarea { + border : 1px solid gray; + } &.thumbnail{ height : 1.4em; label{ diff --git a/client/homebrew/editor/metadataEditor/validations.js b/client/homebrew/editor/metadataEditor/validations.js index 0023c6008..3c35c8a38 100644 --- a/client/homebrew/editor/metadataEditor/validations.js +++ b/client/homebrew/editor/metadataEditor/validations.js @@ -1,12 +1,12 @@ module.exports = { title : [ (value)=>{ - return value?.length > 10 ? 'Max URL length of 10 characters' : null; + return value?.length > 10 ? 'Max title length of 10 characters' : null; } ], description : [ (value)=>{ - return value?.length > 10 ? 'Max URL length of 10 characters' : null; + return value?.length > 10 ? 'Max description length of 10 characters' : null; } ], thumbnail : [