ferdaber/react-focus-within

Bug: Getting TS error when using FocusWithin

steric85 opened this issue · 0 comments

When using FocusWithin, TS throws the following error:

TS2339: Property 'focusProps' does not exist on type 'FocusWithinRenderProps'.

It's happening because focusProps is missing in

export interface FocusWithinRenderProps {
    getFocusProps<P>(
        props?: P
    ): {
        onFocus(event: object): void
        onBlur(event: object): void
        onMouseDown(event: object): void
    } & P
    isFocused: boolean
}