Fancybox is shown from jQuery UI Dialog: pressing Esc button closes both dialogs [closed]

烂漫一生 提交于 2020-01-17 15:34:33

问题


I have got the following issue:

A jQuery UI dialog is open, then a fancybox popup is open from that dialog.
I press Esc button and expect only the fancybox popup to be closed but this closes the jQuery dialog as well.
How do I prevent this behavior?


回答1:


Try this

$( ".selector" ).dialog({ closeOnEscape: false });


来源:https://stackoverflow.com/questions/12819555/fancybox-is-shown-from-jquery-ui-dialog-pressing-esc-button-closes-both-dialogs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!