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

[feature] custom wrapper #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SassNinja
Copy link
Contributor

the wrap option is quite limited because it always creates a <span> and (more important for me) it does change the DOM what results in loosing assigned event listeners on the element (before initializing sticky-js)

this PR implements support of a custom wrapper that gets used by the plugin if present (instead of wrapping the element itself)

I've added an example in the README.md

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant