Skip to content

Commit

Permalink
feat(notes): Limit note length
Browse files Browse the repository at this point in the history
Closes #28
  • Loading branch information
derikb committed Mar 20, 2022
1 parent daccb26 commit aabe304
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/notedisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ const formTemplate = document.createElement('template');
formTemplate.innerHTML = `
<form id="noteEditForm">
<div class="formField">
<label for="title">Title</label>
<input id="title" type="text" name="title" value="" required>
<label for="title">Title (max. 100 characters)</label>
<input id="title" type="text" name="title" value="" required maxlength=100>
</div>
<div class="formField">
<label for="content">Content</label>
<textarea id="content" type="text" name="content" rows="12"></textarea>
<label for="content">Content (max. 2500 characters)</label>
<textarea id="content" type="text" name="content" rows="12" maxlength=2500></textarea>
</div>
<div>
<button type="submit">Save</button>
Expand Down

0 comments on commit aabe304

Please sign in to comment.