mCustomScrollBar: Uncaught TypeError: $(…).mCustomScrollBar is not a function on window resize

后端 未结 1 1677
粉色の甜心
粉色の甜心 2021-01-29 00:19

I am trying to initialise and destroy a mCustomScrollBar scrollbar plugin depending on the window\'s width (some jquery in an es6 app, traspiled using webpack/babel). However I

相关标签:
1条回答
  • 2021-01-29 00:55

    I have solved the problem, somehow my subconscious forgot Javascript was case sensitive... the function should read:

    $(scrollPane).mCustomScrollbar();
    

    not

    $(scrollPane).mCustomScrollBar();
    

    smh!!!

    0 讨论(0)
提交回复
热议问题