@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.
14 lines (13 loc) • 580 B
TypeScript
/**
* body-scroll-lock library adjusted to fix an issue with scrolling being enabled regardless
* of the number of locks, which causes scrolling to be enabled after a nested Popover is closed
*
* https://github.com/willmcpo/body-scroll-lock/issues/235
*/
interface BodyScrollOptions {
reserveScrollBarGap?: boolean;
}
export declare const disableBodyScroll: (targetElement: HTMLElement, options?: BodyScrollOptions) => void;
export declare const clearAllBodyScrollLocks: () => void;
export declare const enableBodyScroll: (targetElement: HTMLElement) => void;
export {};