PhoneGap and Bootstrap Dropdown

425 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 best solutions below

0
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();
    }
});