turbolinks issues with bootstrap modal

后端 未结 2 1132
后悔当初
后悔当初 2020-12-16 01:10

I doing a modal like this:

Link that shows the modal:

<%= link_to \"versão resumida\", resumed_rep_life_animal_path(animal, :partial => true)         


        
2条回答
  •  甜味超标
    2020-12-16 02:02

    data-no-turbolinks is not the issue here...

    It appears bootstrap js out of the box monitors only document.ready, and bootstrap JS may need modified to check for page:load as well

    Look at line 222

    This will only fire on the first request in which bootstrap is included. It needs modified to fire on page:load as well.

    One suggestion I can make is to use gem 'twitter-bootstrap-turbo' for getting bootstrap. This is a fork of twitter-bootstrap-rails , with the addition of turbolinks handlers.

提交回复
热议问题