Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions app/assets/javascripts/esm/stick-to-window-when-scrolling.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -664,9 +664,6 @@ class StickAtEdge {

// Public method to scroll so an element isn't covered by the sticky nav
scrollToRevealElement ($el) {
// guard against previous version of this method recieving `$el` as a jQuery-wrapped DOM node
if ('jquery' in $el) { $el = $el.get(0); }

const scrollAreaNode = $el.closest('.sticky-scroll-area');
const matches = scrollAreas.filterBy(scrollArea => {
return scrollArea.node === scrollAreaNode;
Expand Down
Loading