【发布时间】:2017-05-15 11:03:42
【问题描述】:
我有一个包含文本框的甜蜜提醒框。 sweetalert 在引导模式框上打开。在 Firefox 中,我试图单击文本框,但没有获得焦点。
这是我的甜蜜警报代码:
swal(
{
title: "Create New Design",
input: "text",
showCancelButton: true,
inputPlaceholder: "Title",
preConfirm: function(input)
{
// code to validate the input
}
});
这是截图:
【问题讨论】:
-
首先,您使用的是SweetAlert2,而不是 SweetAlert。这两个项目是不同的。这个问题可能会有所帮助:github.com/limonte/sweetalert2/issues/374
-
非常感谢。帮助很大
标签: javascript firefox bootstrap-modal sweetalert sweetalert2