Fix choices dropdown search order and z-index to show on top of shifts table
This commit is contained in:
parent
36c7db40a7
commit
58c457be86
|
@ -238,6 +238,8 @@ ready(() => {
|
||||||
document.querySelectorAll('select').forEach((element) => {
|
document.querySelectorAll('select').forEach((element) => {
|
||||||
element.choices = new Choices(element, {
|
element.choices = new Choices(element, {
|
||||||
allowHTML: true,
|
allowHTML: true,
|
||||||
|
shouldSort: false,
|
||||||
|
shouldSortItems: false,
|
||||||
classNames: {
|
classNames: {
|
||||||
containerInner: 'choices__inner form-control',
|
containerInner: 'choices__inner form-control',
|
||||||
},
|
},
|
||||||
|
|
|
@ -20,6 +20,10 @@ $es-choices-highlight-color: $choices-text-color !default;
|
||||||
padding: $input-padding-y 1.75rem $input-padding-y $input-padding-x !important;
|
padding: $input-padding-y 1.75rem $input-padding-y $input-padding-x !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.#{$choices-selector} .#{$choices-selector}__list {
|
||||||
|
z-index: $zindex-sticky + 2;
|
||||||
|
}
|
||||||
|
|
||||||
.#{$choices-selector}__list--single {
|
.#{$choices-selector}__list--single {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue