Skip to content

Commit c2787e9

Browse files
committed
Updating updateOriginalInput() to correct unit test failures
1 parent a16c18e commit c2787e9

12 files changed

+393
-444
lines changed

dist/css/selectize.bootstrap2.css

Lines changed: 2 additions & 2 deletions
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: 2 additions & 2 deletions
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: 2 additions & 2 deletions
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: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/selectize.js

Lines changed: 244 additions & 418 deletions
Large diffs are not rendered by default.

dist/js/selectize.min.js

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

dist/less/plugins/drag_drop.less

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.selectize-control.plugin-drag_drop {
2+
&.multi > .selectize-input > div.ui-sortable-placeholder {
3+
visibility: visible !important;
4+
background: #f2f2f2 !important;
5+
background: rgba(0,0,0,0.06) !important;
6+
border: 0 none !important;
7+
.selectize-box-shadow(inset 0 0 12px 4px #fff);
8+
}
9+
.ui-sortable-placeholder::after {
10+
content: '!';
11+
visibility: hidden;
12+
}
13+
.ui-sortable-helper {
14+
.selectize-box-shadow(0 2px 5px rgba(0,0,0,0.2));
15+
}
16+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.selectize-dropdown.plugin-optgroup_columns {
2+
.optgroup {
3+
border-right: 1px solid #f2f2f2;
4+
border-top: 0 none;
5+
float: left;
6+
.selectize-box-sizing(border-box);
7+
}
8+
.optgroup:last-child {
9+
border-right: 0 none;
10+
}
11+
.optgroup:before {
12+
display: none;
13+
}
14+
.optgroup-header {
15+
border-top: 0 none;
16+
}
17+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
.selectize-control.plugin-remove_button {
2+
[data-value] {
3+
position: relative;
4+
padding-right: 24px !important;
5+
}
6+
[data-value] .remove {
7+
z-index: 1; /* fixes ie bug (see #392) */
8+
position: absolute;
9+
top: 0;
10+
right: 0;
11+
bottom: 0;
12+
width: 17px;
13+
text-align: center;
14+
font-weight: bold;
15+
font-size: 12px;
16+
color: inherit;
17+
text-decoration: none;
18+
vertical-align: middle;
19+
display: inline-block;
20+
padding: @selectize-padding-item-y 0 0 0;
21+
border-left: 1px solid @selectize-color-item-border;
22+
.selectize-border-radius(0 2px 2px 0);
23+
.selectize-box-sizing(border-box);
24+
}
25+
[data-value] .remove:hover {
26+
background: rgba(0,0,0,0.05);
27+
}
28+
[data-value].active .remove {
29+
border-left-color: @selectize-color-item-active-border;
30+
}
31+
.disabled [data-value] .remove:hover {
32+
background: none;
33+
}
34+
.disabled [data-value] .remove {
35+
border-left-color: lighten(desaturate(@selectize-color-item-border, 100%), @selectize-lighten-disabled-item-border);
36+
}
37+
.remove-single {
38+
position: absolute;
39+
right: 0;
40+
top: 0;
41+
font-size: 23px;
42+
}
43+
}

dist/scss/selectize.bootstrap4.scss

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,33 @@ $select-arrow-offset: calc(#{$select-padding-x} + 5px) !default;
167167
border-radius: 0;
168168
}
169169

170-
.input-group .#{$selectize}-input {
171-
overflow: unset;
172-
border-radius: 0 $select-border-radius $select-border-radius 0;
170+
.input-group .#{$selectize}-control:not(:last-child) {
171+
.#{$selectize}-input{
172+
overflow: unset;
173+
border-top-right-radius: 0;
174+
border-bottom-right-radius: 0;
175+
}
176+
}
177+
178+
.input-group .#{$selectize}-control:not(:first-child) {
179+
.#{$selectize}-input{
180+
overflow: unset;
181+
border-top-left-radius: 0;
182+
border-bottom-left-radius: 0;
183+
}
184+
}
185+
186+
// .input-group .#{$selectize}-input {
187+
// overflow: unset;
188+
// border-radius: 0 $select-border-radius $select-border-radius 0;
189+
// }
190+
191+
.#{selectize}-dropdown.plugin-auto_position.#{$selectize}-position-top {
192+
border-top: $select-border!important;
193+
border-bottom: $select-border!important;
194+
border-radius: $select-border-radius!important;
195+
}
196+
.#{selectize}-control.plugin-auto_position .#{selectize}-input.#{$selectize}-position-top.dropdown-active {
197+
border-radius: $select-border-radius!important;
198+
border-top: $select-border!important;
173199
}

0 commit comments

Comments
 (0)