WordPress.org

Ready to get started?Download WordPress

Forums

Responsive Select Menu
Back Button on Smartphone Causing Bug (2 posts)

  1. ilnenterprises
    Member
    Posted 1 year ago #

    There's a strange little bug that happens on smartphones with this plugin. On a smartphone, start on a page (page 1) that's not the homepage. Then choose another page (page 2) from the dropdown menu (via Responsive Menu plugin). Then, hit the back button on the phone. The page title name of the previous page remains in the menu.

    So, you're on page 1, but the name of page 2 shows up in the menu. It's a little confusing for non-techies. I know it's a nit. Can this bug be fixed easily?

    We have our demo version on http://www.ilnenterprises.net/milo2/

    Thank you,
    Ed

    http://wordpress.org/extend/plugins/responsive-select-menu/

  2. sevenspark
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Ed,

    I think that's going to be based on the browser's caching of the form elements from a previous page. It resets the form to the previous state - which is whatever link the user navigated to from that page. I suppose you could put in some javascript that would check and actually set the selected menu item on page load with this:

    $( '.responsiveMenuSelect' ).val('');

    Hope that helps :)

    Chris

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic