File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
app/views/custom_message_settings Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,13 @@ $(document).ready(function() {
12
12
setSelect2();
13
13
});
14
14
15
- let currentSearchKeyword;
15
+ // Fix a problem with focus not working in Redmine 5.0 or later.
16
+ // issue: https://github.com/select2/select2/issues/5993
17
+ $(document).on('select2:open', function() {
18
+ document.querySelector('.select2-search__field').focus();
19
+ });
20
+
21
+ var currentSearchKeyword;
16
22
$('#key-selector').on('select2:select', function (e) {
17
23
var key = e.params.data.id;
18
24
var val = e.params.data.text;
Original file line number Diff line number Diff line change 26
26
text-decoration : none;
27
27
}
28
28
29
- .select2-container--default .select2-results__option span .key {
29
+ .select2-container--default .select2-results__option : not (. select2-results__option--highlighted ) span .key {
30
30
color : gray;
31
31
}
32
32
.select2-container--default .select2-results__option [aria-disabled = true ] {
You can’t perform that action at this time.
0 commit comments