Files
2026-08-07 21:39:30 +02:00

9 lines
454 B
TypeScript

import type { RefObject } from '@mui/x-internals/types';
import type { GridScrollApi } from "../models/api/gridScrollApi.mjs";
/**
* Focuses an element while preserving the grid scroll position.
*
* Uses the native `preventScroll` focus option when supported, and otherwise
* restores the scroll position manually after focusing.
*/
export declare function focusElement<Api extends GridScrollApi>(element: HTMLElement, apiRef: RefObject<Api>): void;