@wordpress/dom
Advanced tools
Comparing version 3.16.1-next.957ca95e4c.0 to 3.17.0
@@ -28,2 +28,6 @@ /** | ||
} | ||
} | ||
if (node.ownerDocument === node.parentNode) { | ||
return node; | ||
} // Continue traversing. | ||
@@ -30,0 +34,0 @@ |
@@ -38,2 +38,6 @@ "use strict"; | ||
} | ||
} | ||
if (node.ownerDocument === node.parentNode) { | ||
return node; | ||
} // Continue traversing. | ||
@@ -40,0 +44,0 @@ |
@@ -5,2 +5,4 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. --> | ||
## 3.17.0 (2022-09-13) | ||
## 3.16.0 (2022-08-24) | ||
@@ -7,0 +9,0 @@ |
{ | ||
"name": "@wordpress/dom", | ||
"version": "3.16.1-next.957ca95e4c.0", | ||
"version": "3.17.0", | ||
"description": "DOM utilities module for WordPress.", | ||
@@ -32,3 +32,3 @@ "author": "The WordPress Contributors", | ||
"@babel/runtime": "^7.16.0", | ||
"@wordpress/deprecated": "^3.16.1-next.957ca95e4c.0" | ||
"@wordpress/deprecated": "^3.8.0" | ||
}, | ||
@@ -38,3 +38,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "272a74bbbaab10ee24424eafe9578e705fbfbbb4" | ||
"gitHead": "0d732d4b184adcb28cc83087603e81b764390d4b" | ||
} |
@@ -22,2 +22,3 @@ /** | ||
const { overflowY } = getComputedStyle( node ); | ||
if ( /(auto|scroll)/.test( overflowY ) ) { | ||
@@ -28,4 +29,8 @@ return node; | ||
if ( node.ownerDocument === node.parentNode ) { | ||
return node; | ||
} | ||
// Continue traversing. | ||
return getScrollContainer( /** @type {Element} */ ( node.parentNode ) ); | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
531930
6840
0
Updated@wordpress/deprecated@^3.8.0