PhoneGap and Bootstrap Dropdown

404 views Asked by At

I have a bootstrap site build on PhoneGap. The dropdown menu works fine on desktop and web browser, but not in the PhoneGap Developer App. Does anyone have experience with this?

I can't figure out why, and I can't debug on the PhoneGap Developer App.

Any help is greatly appreciated.

Thanks.

1

There are 1 answers

0
Virik On

This solved my problem. All though I'm not sure if it's the best way to do it.

$(document).on('click touchend', function(e) {
    if (!$(e.target).is('.dropdown-submenu a')) {
        $('.dropdown.open').removeClass('open');
        $('.dropdown-toggle').blur();
    }
});