From c75b69cc51639120091243b9c808243a8f747d10 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 2 Mar 2017 16:14:01 +0100 Subject: [PATCH] Fixed duplicates in tag input --- .../install/files/js/WoltLabSuite/Core/Ui/ItemList.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList.js index 4c50984d19..2db4a57931 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList.js @@ -473,10 +473,13 @@ define(['Core', 'Dictionary', 'Language', 'Dom/Traverse', 'EventKey', 'WoltLabSu return; } - var value = event.currentTarget.value.trim(); - if (value.length) { - this._addItem(event.currentTarget.id, { objectId: 0, value: value }); - } + var currentTarget = event.currentTarget; + window.setTimeout(function() { + var value = currentTarget.value.trim(); + if (value.length) { + this._addItem(currentTarget.id, { objectId: 0, value: value }); + } + }.bind(this), 100); } }; }); -- 2.20.1