Skip to content

Commit f1239be

Browse files
committed
chore(react-focus): resolve errors related to React 18 types
1 parent 3be745a commit f1239be

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

packages/react-focus/etc/react-focus.api.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
```ts
66

77
import type { IRefObject } from '@fluentui/utilities';
8+
import { MergeStylesShadowRootContext } from '@fluentui/utilities';
89
import { MergeStylesShadowRootContextValue } from '@fluentui/utilities';
910
import type { Point } from '@fluentui/utilities';
1011
import * as React_2 from 'react';
@@ -21,6 +22,8 @@ export class FocusZone extends React_2.Component<IFocusZoneProps> implements IFo
2122
// (undocumented)
2223
componentWillUnmount(): void;
2324
// (undocumented)
25+
context: React_2.ContextType<typeof MergeStylesShadowRootContext>;
26+
// (undocumented)
2427
static contextType: React_2.Context<MergeStylesShadowRootContextValue | undefined>;
2528
// (undocumented)
2629
get defaultFocusElement(): HTMLElement | null;

packages/react-focus/src/components/FocusZone/FocusZone.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ export class FocusZone extends React.Component<IFocusZoneProps> implements IFocu
127127
'data-tabster': '{"uncontrolled": {}}',
128128
} as IFocusZonePropsWithTabster;
129129

130+
public declare context: React.ContextType<typeof MergeStylesShadowRootContext>;
131+
130132
private _root: React.RefObject<HTMLElement> = React.createRef();
131133
private _mergedRef = createMergedRef<HTMLElement>();
132134

0 commit comments

Comments
 (0)