Zurb Foundation Reveal Modal - preventing close on background click

前端 未结 7 894
温柔的废话
温柔的废话 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:55

    For anyone looking at this question in 2018, I'm using Version 6.4.0 and this works:

    data-close-on-click="false" data-close-on-esc="false"
    

    I added that to the reveal div like this and it's working (as of July 2018):

    <div class="reveal" id="modalVideo" data-reveal data-close-on-click="false" data-close-on-esc="false"> 
    
    0 讨论(0)
提交回复
热议问题