mirror of
https://github.com/hkalexling/Mango.git
synced 2026-01-25 00:00:36 -05:00
Trim input tag
This commit is contained in:
@@ -259,7 +259,7 @@ const tagsComponent = () => {
|
|||||||
newTag: '',
|
newTag: '',
|
||||||
inputShown: false,
|
inputShown: false,
|
||||||
add() {
|
add() {
|
||||||
const tag = this.newTag;
|
const tag = this.newTag.trim();
|
||||||
this.request(tag, 'PUT', () => {
|
this.request(tag, 'PUT', () => {
|
||||||
this.tags.push(tag);
|
this.tags.push(tag);
|
||||||
this.newTag = '';
|
this.newTag = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user