Skip to content

Update elements outside of main / restore scroll position on popstate #15

@blimpmason

Description

@blimpmason

Hey @estrattonbailey — I'm new to your open source toolset and found you via https://github.com/the-couch/slater/. I really appreciate all the work that went into these goodies! I just have a few questions about operator specifically:

  1. Is there any way to configure it to update body classes, navigation classes, or perhaps anything with a specific data attribute on it that's outside of the main element?
  2. Is there any way to include scroll position restoration on popstate, for example when navigating back to a long collection page from the product page using the browser UI? I consider that pretty crucial for UX as it can be super annoying to find where you were and continue browsing if you're plopped back at the top of the page.

Let me know if you have any thoughts!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions