Archived topic
Bug in sticky.js when using floats
1 reply · Started by Angelo on May 23, 2021
There's a bug in sticky.js that causes malformed CSS.
GP 3.0.3
GP Premium 2.0.2
Steps to reproduce:
- switch structure to Floats
- turn on Sticky menu
- scroll up and down a few times
- css for #sticky-placeholder looks like:
element.style {
visibility: hidden;
float: right;
width: auto !importantwidth:auto !importantwidth:auto !importantwidth:auto !importantwidth:auto !importantwidth:auto !important;
}
FIX:
sticky.js LINE 170: add semicolon after "!important"
Thanks for this! Will fix in the next version :)