Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Sticky Mobile Nav (Off Canvis) + Force the page to scroll to top on open. Set to False but not working. #1009

Closed
FDfranklin opened this issue Jul 6, 2017 · 1 comment

Comments

@FDfranklin
Copy link

How can this bug be reproduced?

I set the mobile "Off Canvis" nav to be sticky. This works perfectly.
<div class="title-bar sticky" data-sticky data-options="marginTop: 0; stickyOn: small; scrolltop: false">

My issue is that when I click the hamburger it forces me to the top of the page. I checked the code in foundation.offcanvis.js and found the following set to True:

Force the page to scroll to top on open.
@option
@example true
forceTop: false,

I set it to false and it's still forcing the page to the top. I've looked around but I'm out of ideas. Any suggestions? Thanks

Please List the Following:

  • Windows 10 + Xampp:
  • Node version (node -v) [Node v4+ is required] : 4.3.3
  • Foundation version (bower list) : 6.2.0
@FDfranklin
Copy link
Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant