Add max length to the listing title

This commit is contained in:
Kimmo Puputti 2017-08-17 14:05:42 +03:00
parent 15dad39e53
commit 8c31bc2f77
2 changed files with 2 additions and 0 deletions

View file

@ -70,6 +70,7 @@ const EditListingDescriptionFormComponent = props => {
id={`${form}.title`}
label={titleMessage}
placeholder={titlePlaceholderMessage}
maxLength={TITLE_MAX_LENGTH}
validate={[required(titleRequiredMessage), maxLength60Message]}
autoFocus
/>

View file

@ -12,6 +12,7 @@ exports[`EditListingDescriptionForm matches snapshot 1`] = `
autoFocus={true}
className=""
id="fakeTestForm.title"
maxLength={60}
name="title"
onBlur={[Function]}
onChange={[Function]}