fix: [ui:select2] Fixed z-index issue
By attaching it to the modal body if applicablepull/73/head
parent
e5a958e8c9
commit
43fbdc63f6
|
@ -119,8 +119,10 @@ function initSelect2Picker($select) {
|
|||
}
|
||||
return buildTag(state)
|
||||
}
|
||||
const $modal = $select.closest('.modal')
|
||||
|
||||
$select.select2({
|
||||
dropdownParent: $modal.length != 0 ? $modal.find('.modal-body') : $(document.body),
|
||||
placeholder: 'Pick a tag',
|
||||
tags: true,
|
||||
width: '100%',
|
||||
|
|
|
@ -94,7 +94,7 @@ input[type="checkbox"]:disabled.change-cursor {
|
|||
}
|
||||
|
||||
.select2-container {
|
||||
z-index: 1056;
|
||||
z-index: 900;
|
||||
}
|
||||
|
||||
.select2-container--bootstrap-5 {
|
||||
|
|
Loading…
Reference in New Issue