Rails Bootstrap button_在悬停时不显示状态栏中的链接

时间:2017-01-12 01:42:35

标签: css ruby-on-rails twitter-bootstrap google-chrome

我有一个带有Bootstrap4 alpha6的rails 5.0.1应用程序。

我的页面上有一个button_to链接。

<%= 
  button_to "Edit Chapter",
  edit_chapter_path(chapter),
  method: :get, 
  class: "btn btn-success" 
%>

当我将鼠标悬停在此链接上时,鼠标不会将其光标更改为指针。此外,Chrome上状态栏中的链接预览也不会显示。

我已通过添加到application.scss

修复了指针问题
.btn {
  cursor:pointer;
}

如何恢复状态栏中显示的链接功能?

我可以确认它适用于应用中的link_to个链接。只有button_to的任何内容都不起作用。

0 个答案:

没有答案