From 5d0ccee04119308f448a667e2029092f8d1d5ecb Mon Sep 17 00:00:00 2001 From: Erik Thuning <boooink@gmail.com> Date: Wed, 12 Jun 2019 11:44:12 +0200 Subject: [PATCH] Fixed a bug where existing tags weren't being filtered from suggestions --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index 91a943f..48b3140 100644 --- a/script.js +++ b/script.js @@ -190,7 +190,7 @@ function suggest(input, type) { case 'tag': var taglist = document.querySelectorAll('#tags .tag > input') for(var i = 0; i < taglist.length; i++) { - var tag = taglist[i].name + var tag = taglist[i].value existing.push(tag.toLowerCase()) } break