sticky-sidebar icon indicating copy to clipboard operation
sticky-sidebar copied to clipboard

jQuery .on() method can't work with StickySidebar events;

Open RomanAkhma opened this issue 5 years ago • 1 comments

How to reproduce:

$('.sidebar')
  .on('affix.bottom.stickySidebar', function handler() {
    // This handler will never be called
  })
  .stickySidebar();

StickySidebar events contains dots in their type. jQuery use dot as delimiter for event namespaces. So you can't attach handler to that events with jQuery .on() method.

RomanAkhma avatar May 27 '19 13:05 RomanAkhma

@RomanAkhma so I guess it's not possible to use events with the jQuery version?

thekendog avatar Feb 04 '20 18:02 thekendog