diff options
author | Dessalines <tyhou13@gmx.com> | 2019-04-18 08:14:45 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-04-18 08:14:45 -0700 |
commit | 927dcd8191846e4493b55bf1dca8c6efc6815893 (patch) | |
tree | edbc1a08a45af72210feb289045ea9a2c98c82d6 /ui/src/components/community-form.tsx | |
parent | fdf547354f225621763fdc46c9b099ed05789271 (diff) |
Adding max length to user, post, and forum fields.
Fixes #76
Diffstat (limited to 'ui/src/components/community-form.tsx')
-rw-r--r-- | ui/src/components/community-form.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/src/components/community-form.tsx b/ui/src/components/community-form.tsx index 0613ef4d..14c2a6b8 100644 --- a/ui/src/components/community-form.tsx +++ b/ui/src/components/community-form.tsx @@ -76,13 +76,13 @@ export class CommunityForm extends Component<CommunityFormProps, CommunityFormSt <div class="form-group row"> <label class="col-12 col-form-label">Name</label> <div class="col-12"> - <input type="text" class="form-control" value={this.state.communityForm.name} onInput={linkEvent(this, this.handleCommunityNameChange)} required minLength={3} pattern="[a-z0-9_]+" title="lowercase, underscores, and no spaces."/> + <input type="text" class="form-control" value={this.state.communityForm.name} onInput={linkEvent(this, this.handleCommunityNameChange)} required minLength={3} maxLength={20} pattern="[a-z0-9_]+" title="lowercase, underscores, and no spaces."/> </div> </div> <div class="form-group row"> <label class="col-12 col-form-label">Title</label> <div class="col-12"> - <input type="text" value={this.state.communityForm.title} onInput={linkEvent(this, this.handleCommunityTitleChange)} class="form-control" required minLength={3} /> + <input type="text" value={this.state.communityForm.title} onInput={linkEvent(this, this.handleCommunityTitleChange)} class="form-control" required minLength={3} maxLength={100} /> </div> </div> <div class="form-group row"> |