拖放操作被解释为单击,绕过确认对话框

问题描述 投票:0回答:1

我们有一个 EF6 MVC3 codeFirst 站点。最近我了解到,如果您单击它,确认对话框工作正常,但如果您单击并尝试通过将链接拖动到某处并放开来撤消它,您会认为单击已取消。这在我的开发环境中运行良好,但在生产中确实单击了链接,绕过了确认对话框?

  <a href="@Url.Action("something","somecontroller")[email protected][i].CListId" onclick="return confirm('Do you really want this?');" class="btn btn-xs menulink" download><span class="glyphicon glyphicon-cloud-download"></span> Download</a>

 

这是另一个例子,单击拖动并不是在本地主机上进行单击,但在生产中它被解释为单击

@Html.ActionLink("Välj", "BuyTicket", new { ticketTypeID = 11 }, new { @onclick = "return confirm('Vill du använda 124 poäng?')", @class = "btn btn-primary btn-xs orange pull-right" })

有人有什么建议吗?

javascript html asp.net-mvc razor
1个回答
0
投票

由于某种原因,不正确的行为停止了,因此错误现在已修复;)

© www.soinside.com 2019 - 2024. All rights reserved.