trim user input forms

This commit is contained in:
Min RK
2022-06-08 12:07:26 +02:00
parent 0908a15848
commit 14d8e23135
3 changed files with 7 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ const CreateGroup = (props) => {
value={groupName}
placeholder="group name..."
onChange={(e) => {
setGroupName(e.target.value);
setGroupName(e.target.value.trim());
}}
></input>
</div>