Skip to content

Commit e326c03

Browse files
committed
rebuild
1 parent f57dcb1 commit e326c03

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

dist/css/selectize.bootstrap4.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/selectize.js

+9-5
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,7 @@
912912
* input / select element.
913913
*/
914914
onChange: function() {
915+
this.$input.trigger('input');
915916
this.$input.trigger('change');
916917
},
917918

@@ -1304,8 +1305,8 @@
13041305

13051306
/**
13061307
* Resets the number of max items to the given value
1307-
*
1308-
* @param {number} value
1308+
*
1309+
* @param {number} value
13091310
*/
13101311
setMaxItems: function(value){
13111312
if(value === 0) value = null; //reset to unlimited items.
@@ -1462,14 +1463,15 @@
14621463
*/
14631464
focus: function() {
14641465
var self = this;
1465-
if (self.isDisabled) return;
1466+
if (self.isDisabled) return self;
14661467

14671468
self.ignoreFocus = true;
14681469
self.$control_input[0].focus();
14691470
window.setTimeout(function() {
14701471
self.ignoreFocus = false;
14711472
self.onFocus();
14721473
}, 0);
1474+
return self;
14731475
},
14741476

14751477
/**
@@ -1480,6 +1482,7 @@
14801482
blur: function(dest) {
14811483
this.$control_input[0].blur();
14821484
this.onBlur(null, dest);
1485+
return this;
14831486
},
14841487

14851488
/**
@@ -1883,7 +1886,7 @@
18831886

18841887
/**
18851888
* Clears all options.
1886-
*
1889+
*
18871890
* @param {boolean} silent
18881891
*/
18891892
clearOptions: function(silent) {
@@ -2069,6 +2072,7 @@
20692072
i = self.items.indexOf(value);
20702073

20712074
if (i !== -1) {
2075+
self.trigger('item_before_remove', value, $item);
20722076
$item.remove();
20732077
if ($item.hasClass('active')) {
20742078
idx = self.$activeItems.indexOf($item[0]);
@@ -2308,7 +2312,7 @@
23082312
// Do not trigger blur while inside a blur event,
23092313
// this fixes some weird tabbing behavior in FF and IE.
23102314
// See #1164
2311-
if (!self.isBlurring) {
2315+
if (self.isBlurring) {
23122316
self.$control_input.blur(); // close keyboard on iOS
23132317
}
23142318
}

dist/js/selectize.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/standalone/selectize.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/scss/selectize.bootstrap4.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ $select-arrow-offset: calc(#{$select-padding-x} + 5px) !default;
135135
&.form-control-sm {
136136
.#{$selectize}-input.has-items {
137137
min-height: $input-height-sm !important;
138-
height: $input-height-sm !important;
138+
height: $input-height-sm;
139139
padding: $input-padding-y-sm $input-padding-x-sm !important;
140140
font-size: $input-font-size-sm;
141141
line-height: $input-line-height-sm;
@@ -144,6 +144,7 @@ $select-arrow-offset: calc(#{$select-padding-x} + 5px) !default;
144144

145145
&.multi {
146146
.#{$selectize}-input.has-items {
147+
height: auto;
147148
padding-left: calc(#{$select-padding-x} - #{$select-padding-item-x});
148149
padding-right: calc(#{$select-padding-x} - #{$select-padding-item-x});
149150
}

0 commit comments

Comments
 (0)