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.
This commit is contained in:
Dan Stillman 2013-03-15 04:39:57 -04:00
parent 1e59c5ab7e
commit 3faa8949ef

View File

@ -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');