简体   繁体   English

Kube JS Modal组件关闭不起作用

[英]Kube js Modal component close doesnt work

I have been trying to use the Kube modal component for an application. 我一直在尝试为应用程序使用Kube模态组件。 https://imperavi.com/kube/docs/modal/ https://imperavi.com/kube/docs/modal/

I have been testing how the modal js works and so far opening works 我一直在测试模态js的工作方式,到目前为止开放的工作方式

$.modalwindow({ target: '#my-modal' });

but it looks like the others api methods dont work 但看起来其他api方法不起作用

$('#my-modal').modal('close');

Anyone has has an issue with this? 有人对此有疑问吗?

Thanks 谢谢

That part of kube does not seem to work currently. kube的该部分当前似乎不起作用。

My workaround was this: 我的解决方法是:

$('#my-modal .close').first().trigger('click');

This needs you to use the standard 这需要您使用标准

<span class="close"></span>

that is shown in the documentation . 文档中显示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM