@rails/ujs
Advanced tools
Comparing version 6.0.0-rc1 to 6.0.0-rc2
@@ -0,1 +1,8 @@ | ||
## Rails 6.0.0.rc2 (July 22, 2019) ## | ||
* Fix `select_tag` so that it doesn't change `options` when `include_blank` is present. | ||
*Younes SERRAJ* | ||
## Rails 6.0.0.rc1 (April 24, 2019) ## | ||
@@ -2,0 +9,0 @@ |
@@ -648,3 +648,3 @@ /* | ||
Rails.preventInsignificantClick = function(e) { | ||
var data, insignificantMetaClick, link, metaClick, method, primaryMouseKey; | ||
var data, insignificantMetaClick, link, metaClick, method, nonPrimaryMouseClick; | ||
link = this; | ||
@@ -655,4 +655,4 @@ method = (link.getAttribute('data-method') || 'GET').toUpperCase(); | ||
insignificantMetaClick = metaClick && method === 'GET' && !data; | ||
primaryMouseKey = e.button === 0; | ||
if (!primaryMouseKey || insignificantMetaClick) { | ||
nonPrimaryMouseClick = (e.button != null) && e.button !== 0; | ||
if (nonPrimaryMouseClick || insignificantMetaClick) { | ||
return e.stopImmediatePropagation(); | ||
@@ -659,0 +659,0 @@ } |
{ | ||
"name": "@rails/ujs", | ||
"version": "6.0.0-rc1", | ||
"version": "6.0.0-rc2", | ||
"description": "Ruby on Rails unobtrusive scripting adapter", | ||
@@ -5,0 +5,0 @@ "main": "lib/assets/compiled/rails-ujs.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38116