Skip to content

Commit

Permalink
Update selectize.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ulriklystbaek committed Oct 20, 2016
1 parent 30675e0 commit 3264feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ $.extend(Selectize.prototype, {
buildControlInput: function(control) {
var self = this;

var $control_input = $('<input type="'+self.settings.inputType+'" name="_selectize_q" autocomplete="off" />')
var $control_input = $('<input type="'+(self.settings.inputType || self.$input.attr('type'))+'" name="_selectize_q" autocomplete="off" />')
.appendTo(control).attr('tabindex', self.$input.is(':disabled') ? '-1' : self.tabIndex);

var inputId;
Expand Down

0 comments on commit 3264feb

Please sign in to comment.