MaxBk MaxBk - 11 months ago 187
CSS Question

Adding scrollbar to bootstrap tokenfield autocomplete

I couldn't find any documentation or questions about enabling scroll bar on bootstrap's tokenfield autocomplete.

My field has a lot of users form Active Directory and it's mandatory for us to have this scroll.

autocomplete: {
source: values,
delay: 10,
focus: function (event, ui) {
showAutocompleteOnFocus: true

//prevent adding duplicate values
$(usersList).on('tokenfield:createtoken', function (event) {
var existingTokens = $(this).tokenfield('getTokens');
$.each(existingTokens, function(index, token) {
if (token.value === event.attrs.value)

Answer Source

Found alter controllers that fit me thanks to Atlassian.