We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f16b589 commit f641319Copy full SHA for f641319
src/MentionsContext.ts
@@ -10,19 +10,7 @@ export interface MentionsContextProps {
10
onFocus: () => void;
11
}
12
13
-const MentionsContext: Context<MentionsContextProps> = createReactContext({
14
- notFoundContent: '' as React.ReactNode,
15
- activeIndex: 0,
16
- setActiveIndex: (_: number) => {
17
- /* Do nothing */
18
- },
19
- selectOption: (_: OptionProps) => {
20
21
22
- onFocus: () => {
23
24
25
-});
+const MentionsContext: Context<MentionsContextProps> = createReactContext(null);
26
27
export const MentionsContextProvider = MentionsContext.Provider;
28
export const MentionsContextConsumer = MentionsContext.Consumer;
0 commit comments