From 3faa8949efef403eeec5193e0a8d127473c6447a Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 15 Mar 2013 04:39:57 -0400 Subject: [PATCH] Fix glitch entering tag with whitespace If an existing colored tag was added to an item with whitespace around it, the tag didn't immediately show up with a color. --- chrome/content/zotero/bindings/tagsbox.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/bindings/tagsbox.xml b/chrome/content/zotero/bindings/tagsbox.xml index 4a8a84b4af..16ea34e16c 100644 --- a/chrome/content/zotero/bindings/tagsbox.xml +++ b/chrome/content/zotero/bindings/tagsbox.xml @@ -638,6 +638,7 @@ var tabindex = textbox.getAttribute('ztabindex'); var oldValue = textbox.getAttribute('value'); + textbox.value = textbox.value.trim(); var value = textbox.value; var tagsbox = Zotero.getAncestorByTagName(textbox, 'tagsbox');