Bootstrap Modal immediately disappearing

后端 未结 27 1096
清歌不尽
清歌不尽 2020-12-04 07:18

I\'m working on a website using bootstrap.

Basically, I wanted to use a modal in the home page, summoned by the button in the Hero Unit.

Button code:

27条回答
  •  北海茫月
    2020-12-04 07:34

    In my case, I had the CDN included in the head of application.html.erb and also installed the 'jquery-rails' gem, which I am guessing thanks to the documentation and posts above, is redundant.

    I simply commented out the CDN (below) from the head of application.html.erb and the modal appropriately stays open.

    
    

提交回复
热议问题