@sanity/form-builder
Version:
Sanity form builder
10 lines • 551 B
TypeScript
/**
* A hook to help make sure the parent element of a value edited in a dialog (or "out of band") stays
visible in the background
* @param elementRef The element to scroll into view when the proivided focusWithin changes from true to false
* @param hasFocusWithin A boolean indicating whether we have has focus within the currently edited value
*/
export declare function useScrollIntoViewOnFocusWithin(elementRef: {
current: HTMLElement | null;
}, hasFocusWithin: boolean): void;
//# sourceMappingURL=useScrollIntoViewOnFocusWithin.d.ts.map