Zurb Foundation Reveal Modal - preventing close on background click

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

    Yehhhhh Finally Found It:

    Put below code on your foundation reveal model. Than it not close by clicking on background or by pressing esc key.

    data-options="close_on_background_click:false;close_on_esc:false;"

    Ex:

提交回复
热议问题