我有一个包含文本框的sweetalert 框。sweetalert 在引导模式框上打开。在 Firefox 中,我试图单击文本框,但没有获得焦点。
这是我的甜蜜警报代码:
swal(
{
title: "Create New Design",
input: "text",
showCancelButton: true,
inputPlaceholder: "Title",
preConfirm: function(input)
{
// code to validate the input
}
});
这是屏幕截图: