Bug if selector references body class
-
I haven’t had time to extensively test this, but I just ran into a bug where if I included a body class in the selector, it failed to work. E.g.
.home a[rel='m_PageScroll2id']
Failed to work, but any other ancestor selector would, such as
header a[rel='m_PageScroll2id']
I hacked around a bit in the -init.js file to make sure my selectors were right with something like this:
console.log( $(malihuPageScroll2idInitParams.sel).length );
Which indicated my elements were in the DOM as I expected, and they were. But the scrolling behavior on them didn’t seem to work. Not sure if it’s a problem with line 24 of the main JS file referencing $(‘body’) directly but I wanted to flag this.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Bug if selector references body class’ is closed to new replies.