Skip to content

Commit b0c35c0

Browse files
authored
fix: add missing backwards compatibility for types (#8256)
1 parent ef4027f commit b0c35c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@react-aria/focus/src/FocusScope.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
import {FocusableElement, RefObject} from '@react-types/shared';
2626
import {focusSafely, getInteractionModality} from '@react-aria/interactions';
2727
import {isElementVisible} from './isElementVisible';
28-
import React, {ReactNode, useContext, useEffect, useMemo, useRef} from 'react';
28+
import React, {JSX, ReactNode, useContext, useEffect, useMemo, useRef} from 'react';
2929

3030
export interface FocusScopeProps {
3131
/** The contents of the focus scope. */
@@ -90,7 +90,7 @@ let activeScope: ScopeRef = null;
9090
* management interface that can be used to move focus forward and back in response
9191
* to user events.
9292
*/
93-
export function FocusScope(props: FocusScopeProps): ReactNode {
93+
export function FocusScope(props: FocusScopeProps): JSX.Element {
9494
let {children, contain, restoreFocus, autoFocus} = props;
9595
let startRef = useRef<HTMLSpanElement>(null);
9696
let endRef = useRef<HTMLSpanElement>(null);

0 commit comments

Comments
 (0)