@rh-support/utils 2.5.32 → 2.5.43
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/lib/esm/scrollUtils.js +1 -1
- package/package.json +2 -2
package/lib/esm/scrollUtils.js
CHANGED
|
@@ -22,7 +22,7 @@ export function scrollIntoView(sectionRef, options) {
|
|
|
22
22
|
const hasOffset = !!(options === null || options === void 0 ? void 0 : options.offset);
|
|
23
23
|
if (hasNavbar || hasOffset) {
|
|
24
24
|
const sectionRect = sectionRef.current.getBoundingClientRect();
|
|
25
|
-
let elementTopPosition = sectionRect.top
|
|
25
|
+
let elementTopPosition = sectionRect.top;
|
|
26
26
|
let top = elementTopPosition - ((_b = options === null || options === void 0 ? void 0 : options.offset) !== null && _b !== void 0 ? _b : 0);
|
|
27
27
|
if (hasNavbar) {
|
|
28
28
|
const navRect = options.navBarRef.current.getBoundingClientRect();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/utils",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.43",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "Vikas Rathee <vrathee@redhat.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"defaults and supports es6-module",
|
|
75
75
|
"maintained node versions"
|
|
76
76
|
],
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "bcd580871dcd6a13b6ba1806ef98cec21d783082"
|
|
78
78
|
}
|