mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 03:15:31 -04:00
Trim input tag
This commit is contained in:
parent
b05ed57762
commit
c6ee5409f8
@ -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 = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user