Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.

StickyJS works only in Chrome #79

Open
mrkkr opened this issue May 27, 2020 · 1 comment
Open

StickyJS works only in Chrome #79

mrkkr opened this issue May 27, 2020 · 1 comment

Comments

@mrkkr
Copy link

mrkkr commented May 27, 2020

Hello,
I have implemented as documented and sticky-js works only in Chrome. On FF, Edge, EI11 doesn't run the script at all. Optional attributes are in HTML tags.

My code:

import Sticky from "sticky-js/dist/sticky.compile";

    const stickySidebarFunc = () => {
        new Sticky(".sidebar__content", {});
    };

    document.addEventListener("DOMContentLoaded", () => {
        const stickyForm = document.querySelector(".sidebar__content");

        stickyForm ? stickySidebarFunc() : null;
    });

@Manoz
Copy link

Manoz commented Sep 25, 2020

Working on FF for me

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

2 participants