Open colinwalshryan opened 8 years ago
I wanted the tabindex of the original input to be respected so I updated the settings and the markup creation:
$.fn.tagsInput = function(options) { input = $(this); var settings = jQuery.extend({ interactive:true, defaultText:'add a tag', minChars:0, width:'300px', height:'100px', autocomplete: {selectFirst: false }, hide:true, delimiter: ',', unique:true, removeWithBackspace:true, placeholderColor:'#666666', autosize: true, comfortZone: 20, inputPadding: 6*2, tabindex: input.attr('tabindex') },options);
if (settings.interactive) { markup = markup + ''; }
I wanted the tabindex of the original input to be respected so I updated the settings and the markup creation:
$.fn.tagsInput = function(options) { input = $(this); var settings = jQuery.extend({ interactive:true, defaultText:'add a tag', minChars:0, width:'300px', height:'100px', autocomplete: {selectFirst: false }, hide:true, delimiter: ',', unique:true, removeWithBackspace:true, placeholderColor:'#666666', autosize: true, comfortZone: 20, inputPadding: 6*2, tabindex: input.attr('tabindex') },options);
if (settings.interactive) { markup = markup + ''; }