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

iPhone and iPad dropdown does not close when clicked outside #103

Closed
vicky8987 opened this issue Mar 2, 2013 · 1 comment
Closed

iPhone and iPad dropdown does not close when clicked outside #103

vicky8987 opened this issue Mar 2, 2013 · 1 comment

Comments

@vicky8987
Copy link

Dropkick is working fine for me in desktop's all browser even in other touch devices with scrolling feature. Only one problem which i am not able to fix is "when i use iPhone and iPad, dropdown does not close when clicked outside". Is there any help for the issue? Thanks in advance.

@tokubass
Copy link

$('html').click or $('body').click, $('document').click dose not work when iOS.
You need to specify class or id name.

    if ($.browser.webkit) {
        $('#body-content').on('click', function(e) {
            $.each($('select'), function(i, select) {
                if ( $(select).data('dropkick') ) {
                    $(select).dropkick('close');
                }
            });
        });
    }

see also issue #45.

@Robdel12 Robdel12 closed this as completed Sep 3, 2013
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

3 participants