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

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

@eballeste

Description

@eballeste

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions