Bootstrap shown.bs.tab event not working

后端 未结 5 898
臣服心动
臣服心动 2021-02-06 04:42

I\'m using the Flexy template (using bootstrap) and I can\'t get the shown.bs.tab event on tab to work.

I\'ve managed to make it work on JSFiddle.

Here is the co

5条回答
  •  忘掉有多难
    2021-02-06 05:22

    The issue was more a rails-related one.

    I ended up by removing one by one every piece of code since the issue was not there in the raw template as @KyleMit says.

    Whenever I remove the line //= require bootstrap-sprockets from my application.js file the issue disappears !

    The issue was that I was requiring both bootstrap and bootstrap-sprockets. I should have require just one of them but not both.

提交回复
热议问题