Zurb Foundation Reveal Modal - preventing close on background click

前端 未结 7 901
温柔的废话
温柔的废话 2021-02-07 05:13

When I am opening my Reveal Modal, I would like to prevent it from closing on background click (which is a default behavior).

I am using Zurb Foundation 5.0.2

7条回答
  •  一个人的身影
    2021-02-07 05:29

    You can achieve this globally by executing the following line of JavaScript before showing any modals:

    Foundation.libs.reveal.settings.close_on_background_click = false;
    

提交回复
热议问题