Skip to content

virtual keyboard popup on phones #46

@mattiLeBlanc

Description

@mattiLeBlanc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions