aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/CHANGELOG.md
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-12-05 15:57:22 -0500
committerGitHub <noreply@github.com>2018-12-05 15:57:22 -0500
commitb86f65a816546ff8eea39d25b62c995c7efc21dc (patch)
tree4149da710aa6e343859eef52521a86bb71e86d60 /actionview/CHANGELOG.md
parentd9816546494f66e76bd5012a91b872dc2096a06c (diff)
parenta2612622e8cabbe59794735dfb1ac55addfd5d36 (diff)
downloadrails-b86f65a816546ff8eea39d25b62c995c7efc21dc.tar.gz
rails-b86f65a816546ff8eea39d25b62c995c7efc21dc.tar.bz2
rails-b86f65a816546ff8eea39d25b62c995c7efc21dc.zip
Merge pull request #34573 from WoH/firefox-right-click-bug
Prevent non-primary mouse button clicks from triggering click events
Diffstat (limited to 'actionview/CHANGELOG.md')
-rw-r--r--actionview/CHANGELOG.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md
index 237a25ba4f..f32bc3ab40 100644
--- a/actionview/CHANGELOG.md
+++ b/actionview/CHANGELOG.md
@@ -1,3 +1,16 @@
+* Prevent non-primary mouse keys from triggering Rails UJS click handlers.
+ Firefox fires click events even if the click was triggered by non-primary mouse keys such as right- or scroll-wheel-clicks.
+ For example, right-clicking a link such as the one described below (with an underlying ajax request registered on click) should not cause that request to occur.
+
+ ```
+ <%= link_to 'Remote', remote_path, class: 'remote', remote: true, data: { type: :json } %>
+ ```
+
+ Fixes #34541
+
+ *Wolfgang Hobmaier*
+
+
* Prevent `ActionView::TextHelper#word_wrap` from unexpectedly stripping white space from the _left_ side of lines.
For example, given input like this: