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

PreventDefault() and return false event methods not respected on Android 4.3 stock browser #38

Open
qikkeronline opened this issue Jul 16, 2015 · 0 comments

Comments

@qikkeronline
Copy link

Hi @pukhalski - when doing some tests on one of the sites that I'm using tap on, I found an issue regarding the preventDefault() and return false event methods. They do not seem to be respected on the Android 4.3 stock browser; but other JS logic I'm writing in the .on('tap') function calls does get executed.

I don't have the device with me; but I will drop the specifics about the OS and browser version here. Will do some debugging tomorrow. An example from my code:

// Toggling the menu on click
var menu_toggle_trigger = '.js-header__toggle_menu';
var menu_nav = jQuery('.js-header');

jQuery(document).on('tap', menu_toggle_trigger, function(e) {

    menu_nav.toggleClass('js-header--nav_open');

    ToggleMenu();
    return false;

});
@qikkeronline qikkeronline changed the title PreventDefault() and return false event methods not honored on Android 4.3 stock browser PreventDefault() and return false event methods not respected on Android 4.3 stock browser Jul 16, 2015
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

1 participant