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 5e3ecd0 commit b662f1cCopy full SHA for b662f1c
2 files changed
src/Select.tsx
@@ -72,9 +72,9 @@ export type SelectProps<ValueType extends DefaultValueType = DefaultValueType> =
72
* we have to wrap an class component to handle this.
73
*/
74
class Select<VT> extends React.Component<SelectProps<SelectOptionsType, VT>> {
75
- static Option: typeof Option;
+ static Option = Option;
76
77
- static OptGroup: typeof OptGroup;
+ static OptGroup = OptGroup;
78
79
selectRef = React.createRef<RefSelectProps>();
80
src/interface/index.ts
@@ -1,7 +1,7 @@
1
import * as React from 'react';
2
import { Key } from './generator';
3
4
-export type RenderNode = React.ReactNode | (() => React.ReactNode);
+export type RenderNode = React.ReactNode | ((props: any) => React.ReactNode);
5
6
export type Mode = 'multiple' | 'tags' | 'combobox';
7
0 commit comments