loopj/jquery-tokeninput — pull request #678 by Maddock- (2014-06-02 17:06:47+00:00)
Title: Increase default z-index of dropdown

A number of users are encountering problems when they attempt to use the plugin on a modal window, supplied by libraries such as Bootstrap and AJAX Control Toolkit. Due to the dropdown being appended to

, if the z-index of the modal window is higher than the dropdown, it will be covered up.

See:
http://stackoverflow.com/q/23960267/1768779
http://stackoverflow.com/q/23677002/1768779
http://stackoverflow.com/q/11520861/1768779

By increasing the default value to a higher value, we'd avoid the problem in the first place. (I see very few situations where you'd WANT something to display on top of the interface.)

110000 was chosen as the value to be above Bootstrap, jquery UI, and AJAX Control Toolkit modal window values. (AJAX Control Toolkit is highest at 100001)

Note this means the

and the dropdown have inconsistent z-index's, however, I think this is appropriate as there's the potential you'd want a modal to appear over a tokenInput field. However, any dropdown would have likely been dismissed on creation of the modal window anyway.