UNPKG

reakit-utils

Version:

Reakit utils

16 lines (15 loc) 592 B
import * as React from "react"; /** * Cross-browser method that returns the next active element (the element that * is receiving focus) after a blur event is dispatched. It receives the blur * event object as the argument. * * @example * import { getNextActiveElementOnBlur } from "reakit-utils"; * * const element = document.getElementById("id"); * element.addEventListener("blur", (event) => { * const nextActiveElement = getNextActiveElementOnBlur(event); * }); */ export declare function getNextActiveElementOnBlur(event: React.FocusEvent | FocusEvent): HTMLElement | null;