When using the singleField configuration option, the tag would be appended to the hidden field before the beforeTagAdded callback was actually ran. The net result was that the hidden field would contain invalid tag data.
The callback is now being ran before the tag DOM is created and before the singleField is updated.
When using the singleField configuration option, the tag would be add…
…ed to the hidden field even if the beforeTagAdded callback returned false.
Thanks, good catch! It needed a little refactoring since I'm passing the tag to the callback - fixed it in d5fe008