@enact/ui 4.7.5 → 4.7.6
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.
- package/CHANGELOG.md +4 -0
- package/package.json +2 -2
- package/useScroll/utilDOM.js +3 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enact/ui",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.6",
|
|
4
4
|
"description": "A collection of simplified unstyled cross-platform UI components for Enact",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@enact/core": "^4.7.
|
|
34
|
+
"@enact/core": "^4.7.6",
|
|
35
35
|
"classnames": "^2.3.2",
|
|
36
36
|
"direction": "^1.0.4",
|
|
37
37
|
"invariant": "^2.2.4",
|
package/useScroll/utilDOM.js
CHANGED
|
@@ -12,12 +12,13 @@ var utilDOM = function () {
|
|
|
12
12
|
// Functions
|
|
13
13
|
|
|
14
14
|
function containsDangerously(ref, target) {
|
|
15
|
+
var _ref$current;
|
|
15
16
|
if (!target) {
|
|
16
17
|
return false;
|
|
17
|
-
} else if (ref.current) {
|
|
18
|
+
} else if (typeof (ref === null || ref === void 0 || (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.contains) === 'function') {
|
|
18
19
|
process.env.NODE_ENV !== "production" ? (0, _warning["default"])(ref.current.contains, 'The `contains` function of the Ref is not supported.') : void 0;
|
|
19
20
|
return ref.current.contains(target);
|
|
20
|
-
} else if (ref) {
|
|
21
|
+
} else if (typeof (ref === null || ref === void 0 ? void 0 : ref.contains) === 'function') {
|
|
21
22
|
process.env.NODE_ENV !== "production" ? (0, _warning["default"])(ref.contains, 'The `contains` function of the Ref is not supported.') : void 0;
|
|
22
23
|
return ref.contains(target);
|
|
23
24
|
}
|