signalpoint / DrupalGap

An application development kit for Drupal websites.
https://www.drupalgap.org
GNU General Public License v2.0
233 stars 186 forks source link

Clicking Same Menu Item Multiple Times in iOS Breaks #661

Open mkinnan opened 8 years ago

mkinnan commented 8 years ago

I am using slide menus. If I set a page to reload each time, the first time I tap the menu link it loads just fine. If I tap the same menu item again, the page then just shows Reloading.... If I click the same menu item a third time, then I get {:header}{:sub_header}{:navigation}{:content}{:footer}. This only happens if I set the menu link to reload. Here is the code I am using for a menu link:

      items.push(bl('My Bookmarks', 'mybookmarks', {
          attributes: {
            'data-icon': 'info'
          },
          reloadPage:true
      }));
mkinnan commented 8 years ago

The only work around I found is to put the reloadpage:true in hook_menu ...

items['mybookmarks'] = {
  title: 'My Bookmarks',
  page_callback: 'my_module_mybookmarks_page',
  options:{
    reloadPage:true
  }
};

This way the page always reloads when you go to it, but you are not able to click the same menu item if you are already on that particular page, thus preventing the problem ... so it seems.

signalpoint commented 8 years ago

@mkinnan Interesting. What version of iOS is/was this happening in?

mkinnan commented 8 years ago

@signalpoint I noticed this with that last few versions of iOS 9. It is still happening, so I just have to do the workaround for now.

signalpoint commented 8 years ago

@mkinnan Thanks for sharing, many folks are having issues w/ iOS 9.