Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Drawer.open causes browser to jump to top of page #546

Closed
eballeste opened this issue Jun 19, 2016 · 1 comment
Closed

Drawer.open causes browser to jump to top of page #546

eballeste opened this issue Jun 19, 2016 · 1 comment

Comments

@eballeste
Copy link

eballeste commented Jun 19, 2016

I have a nav item that animates into view once a user scrolls down the page with an option to view the cart included. I included the js-drawer-open-right class to one of the nav options in order to trigger the Cart drawer to open, which works, but the browser also jumps to the very top of the page. Is there any way to get around this?

Current behavior can be seen here by scrolling down some and clicking on the cart button once it pops into view: https://skinfood-dev.myshopify.com/

@eballeste
Copy link
Author

This behavior also can be seen when adding products to the cart in a collections page, the cart drawer is opened and the browser jumps all the way to the top of the page. Kind of an annoying side effect of using the drawers.

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