简体   繁体   English

Ruby on Rails和Javascript确认Safari 12中的弹出窗口

[英]Ruby on Rails and Javascript confirm popups in Safari 12

In my Rails apps I have a lot of links like this one: 在我的Rails应用程序中,我有很多像这样的链接:

link_to "Destroy", project_path, :method => :delete, :data => { :confirm => "Are you sure?" }

The confirm data attribute used to trigger a Javascript popup (and still does in most browsers). confirm数据属性用于触发Javascript弹出窗口(在大多数浏览器中仍然如此)。

In Safari 12 these popups no longer seem to work, however. 然而,在Safari 12中,这些弹出窗口似乎不再起作用。

Instead of the actual popup I get the spinning pinwheel (An error message would have been helpful here, Apple!). 而不是实际的弹出窗口,我得到旋转的风车(这里的错误信息会有所帮助,Apple!)。 No errors are reported in my browser console or Rails logs either. 我的浏览器控制台或Rails日志中也没有报告错误。

How can this be fixed? 怎么解决这个问题?

PS: My Rails version is 5.1.4 PS:我的Rails版本是5.1.4

我刚下载并安装了Safari 12.0.1开发人员预览版似乎已修复它。

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

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