Skip to content

Commit e32ca1d

Browse files
committed
Version bump to v0.15.1
* prep for release
1 parent e3d76fc commit e32ca1d

13 files changed

+47
-38
lines changed

dist/css/selectize.bootstrap2.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/selectize.bootstrap3.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/selectize.bootstrap4.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/selectize.bootstrap5.css

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/selectize.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/selectize.default.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/selectize.legacy.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/selectize.js

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Selectize (v0.15.0)
2+
* Selectize (v0.15.1)
33
* https://selectize.dev
44
*
55
* Copyright (c) 2013-2015 Brian Reavis & contributors
@@ -2331,7 +2331,13 @@ $.extend(Selectize.prototype, {
23312331

23322332
for (j = 0, k = optgroups && optgroups.length; j < k; j++) {
23332333
optgroup = optgroups[j];
2334-
if (!self.optgroups.hasOwnProperty(optgroup)) {
2334+
if (!self.optgroups.hasOwnProperty(optgroup) && typeof self.settings.optionGroupRegister === 'function') {
2335+
var regGroup;
2336+
if (regGroup = self.settings.optionGroupRegister.apply(self, [optgroup])) {
2337+
self.registerOptionGroup(regGroup);
2338+
}
2339+
}
2340+
if (!self.optgroups.hasOwnProperty(optgroup)) {
23352341
optgroup = '';
23362342
}
23372343
if (!groups.hasOwnProperty(optgroup)) {
@@ -3669,26 +3675,28 @@ Selectize.defaults = {
36693675
normalize: false,
36703676
ignoreOnDropwdownHeight: 'img, i',
36713677
search: true,
3672-
/*
3673-
load : null, // function(query, callback) { ... }
3674-
score : null, // function(search) { ... }
3675-
formatValueToKey : null, // function(key) { ... }
3676-
onInitialize : null, // function() { ... }
3677-
onChange : null, // function(value) { ... }
3678-
onItemAdd : null, // function(value, $item) { ... }
3679-
onItemRemove : null, // function(value, $item) { ... }
3680-
onClear : null, // function() { ... }
3681-
onOptionAdd : null, // function(value, data) { ... }
3682-
onOptionRemove : null, // function(value) { ... }
3683-
onOptionClear : null, // function() { ... }
3684-
onOptionGroupAdd : null, // function(id, data) { ... }
3685-
onOptionGroupRemove : null, // function(id) { ... }
3686-
onOptionGroupClear : null, // function() { ... }
3687-
onDropdownOpen : null, // function($dropdown) { ... }
3688-
onDropdownClose : null, // function($dropdown) { ... }
3689-
onType : null, // function(str) { ... }
3690-
onDelete : null, // function(values) { ... }
3691-
*/
3678+
3679+
/*
3680+
load : null, // function(query, callback) { ... }
3681+
score : null, // function(search) { ... }
3682+
formatValueToKey : null, // function(key) { ... }
3683+
optionGroupRegister : null, // function(optgroup) to register dynamically created option groups
3684+
onInitialize : null, // function() { ... }
3685+
onChange : null, // function(value) { ... }
3686+
onItemAdd : null, // function(value, $item) { ... }
3687+
onItemRemove : null, // function(value, $item) { ... }
3688+
onClear : null, // function() { ... }
3689+
onOptionAdd : null, // function(value, data) { ... }
3690+
onOptionRemove : null, // function(value) { ... }
3691+
onOptionClear : null, // function() { ... }
3692+
onOptionGroupAdd : null, // function(id, data) { ... }
3693+
onOptionGroupRemove : null, // function(id) { ... }
3694+
onOptionGroupClear : null, // function() { ... }
3695+
onDropdownOpen : null, // function($dropdown) { ... }
3696+
onDropdownClose : null, // function($dropdown) { ... }
3697+
onType : null, // function(str) { ... }
3698+
onDelete : null, // function(values) { ... }
3699+
*/
36923700

36933701
render: {
36943702
/*

dist/js/selectize.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/scss/selectize.bootstrap5.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ $select-arrow-offset: calc(#{$select-padding-x} + 5px) !default;
158158
}
159159
}
160160

161+
.form-select.#{$selectize}-control,
161162
.form-control.#{$selectize}-control {
162163
padding: 0;
163164
height: auto;

0 commit comments

Comments
 (0)