Skip to content

Commit 104e64d

Browse files
committed
selectized class should not have been added before the classes were checked and propegated to all of the controls created by selectize. It was previously added after this initialization and is now also added at the same time.
1 parent cc0934d commit 104e64d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/selectize.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ $.extend(Selectize.prototype, {
103103
var tab_index;
104104
var classes;
105105
var classes_plugins;
106-
107-
self.$input.addClass('selectized');
108106

109107
inputMode = self.settings.mode;
110108
tab_index = self.$input.attr('tabindex') || '';
@@ -244,6 +242,8 @@ $.extend(Selectize.prototype, {
244242
if (settings.preload === true) {
245243
self.onSearchChange('');
246244
}
245+
246+
self.$input.addClass('selectized');
247247
},
248248

249249
/**

0 commit comments

Comments
 (0)