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

StickyJS works only in Chrome #79

@mrkkr

Description

@mrkkr

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;
    });

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