@hotwired/turbo 8.0.0-rc.1 → 8.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Turbo 8.0.0-rc.1
2
+ Turbo 8.0.0-rc.2
3
3
  Copyright © 2024 37signals LLC
4
4
  */
5
5
  /**
@@ -3828,7 +3828,7 @@ var Idiomorph = (function () {
3828
3828
  * @returns {boolean}
3829
3829
  */
3830
3830
  function ignoreValueOfActiveElement(possibleActiveElement, ctx) {
3831
- return ctx.ignoreActiveValue && possibleActiveElement === document.activeElement;
3831
+ return ctx.ignoreActiveValue && possibleActiveElement === document.activeElement && possibleActiveElement !== document.body;
3832
3832
  }
3833
3833
 
3834
3834
  /**
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Turbo 8.0.0-rc.1
2
+ Turbo 8.0.0-rc.2
3
3
  Copyright © 2024 37signals LLC
4
4
  */
5
5
  (function (global, factory) {
@@ -3834,7 +3834,7 @@ Copyright © 2024 37signals LLC
3834
3834
  * @returns {boolean}
3835
3835
  */
3836
3836
  function ignoreValueOfActiveElement(possibleActiveElement, ctx) {
3837
- return ctx.ignoreActiveValue && possibleActiveElement === document.activeElement;
3837
+ return ctx.ignoreActiveValue && possibleActiveElement === document.activeElement && possibleActiveElement !== document.body;
3838
3838
  }
3839
3839
 
3840
3840
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hotwired/turbo",
3
- "version": "8.0.0-rc.1",
3
+ "version": "8.0.0-rc.2",
4
4
  "description": "The speed of a single-page web application without having to write any JavaScript",
5
5
  "module": "dist/turbo.es2017-esm.js",
6
6
  "main": "dist/turbo.es2017-umd.js",