From c6ee5409f8364787cf10e3eac483348bd53e4796 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Wed, 30 Dec 2020 08:14:55 +0000 Subject: [PATCH] Trim input tag --- public/js/title.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/title.js b/public/js/title.js index 4fbb428..284ae5e 100644 --- a/public/js/title.js +++ b/public/js/title.js @@ -259,7 +259,7 @@ const tagsComponent = () => { newTag: '', inputShown: false, add() { - const tag = this.newTag; + const tag = this.newTag.trim(); this.request(tag, 'PUT', () => { this.tags.push(tag); this.newTag = '';