hrm_ui_lib 2.4.38 → 2.4.39

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 +1 @@
1
- export declare const useHideOnScroll: (hide: () => void, elementRef?: HTMLElement | null) => null;
1
+ export declare const useHideOnScroll: (hide: () => void, parent?: HTMLElement | null) => null;
@@ -1,7 +1,7 @@
1
1
  import { useEffect } from 'react';
2
2
  import { CUSTOM_SCROLL_NAME, CUSTOM_SCROLL_MESSAGE } from '../consts';
3
- export const useHideOnScroll = (hide, elementRef) => {
4
- const scrollElement = elementRef !== null && elementRef !== void 0 ? elementRef : document;
3
+ export const useHideOnScroll = (hide, parent) => {
4
+ const scrollElement = parent !== null && parent !== void 0 ? parent : document;
5
5
  useEffect(() => {
6
6
  scrollElement.addEventListener('scroll', hide);
7
7
  return () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hrm_ui_lib",
3
- "version": "2.4.38",
3
+ "version": "2.4.39",
4
4
  "description": "UI library for Dino",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",