-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Behavior when selecting pull-down items #23
Comments
Thank you for the feedback. https://github.com/farend/redmine_searchable_selectbox/releases/tag/v0.1.11 |
It does not work even I updated select2 to 4.1.0_rc. Finally I happened to find the root cause of a repro via chrome dev tools. when // Fix a problem with focus not working in Redmine 5.0 or later.
// issue: https://github.com/select2/select2/issues/5993
$(document).on('select2:open', function() {
document.querySelector('.select2-search__field').focus();
}); the additional_tags textarea locates at the almost bottom of the new issue page, the I did a quick fix and it works well for me. I am not familiar with JS, please correct me if it has potential issue. //workaround
- document.querySelector('.select2-search__field').focus();
+ document.querySelector('input.select2-search__field:not([placeholder="Add tags"])').focus(); |
@nightmeteora |
I found that using the default theme does not have this issue, but using "Purplemine2-2.16.2" only has this problem. So what is the specific reason for this, huh? Do any experts have a solution? |
@hxqqqqqq in redmine 5.1.3 |
When I create a new ticket in redmine, when I click on a pull-down item
the screen scrolls to the bottom and I have to go back to the pull-down.
Is there any way to fix this?
A similar event seems to be occurring with select2 4.0.12, which is used inside Redmine.
It seems like it could be handled by updating the version of select2 used in the plugin, though,
Does redmine_searchable_selectbox support select2 4.0.13?
select2/select2#5734
*This post uses Google Translate.
The text was updated successfully, but these errors were encountered: