Skip to content
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

virtual keyboard popup on phones #46

Open
mattiLeBlanc opened this issue Jul 6, 2016 · 3 comments
Open

virtual keyboard popup on phones #46

mattiLeBlanc opened this issue Jul 6, 2016 · 3 comments

Comments

@mattiLeBlanc
Copy link

mattiLeBlanc commented Jul 6, 2016

Hi,

I am following this long and old issue (select2/select2#1541) about the virtual keyboard popping up when not using minimumResultsForSearch:-1.

Is there a way we can fix this with the directive? On guy suggested to set a focus on another element onchange (which to me doesn't make sense). However maybe we can do it on the event when the options list is rendered?

Anyway, I am not sure if it has been resolved in Select2 version 4 but since this directive is not yet supporting that I was wondering if there are solutions I / we can implement.

I found one fix:

$('select').on('select2:open', function(e) {
    $('.select2-search input').prop('focus',false);
})

and will try if this works. If so, maybe it could be an option?

cheers

@landsman
Copy link

landsman commented Jul 29, 2016

@mattiLeBlanc Yea, keyboard not show ... but if i click to search input is our problem back :(

@mattiLeBlanc
Copy link
Author

Do you have a better suggestion?

@landsman
Copy link

Find a bug :|

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants