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

[feature] custom wrapper#75

Open
SassNinja wants to merge 1 commit intorgalus:masterfrom
SassNinja:feature/custom-wrapper
Open

[feature] custom wrapper#75
SassNinja wants to merge 1 commit intorgalus:masterfrom
SassNinja:feature/custom-wrapper

Conversation

@SassNinja
Copy link
Copy Markdown
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