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 97e36ff commit 78ff4e7Copy full SHA for 78ff4e7
src/Select.tsx
@@ -135,12 +135,13 @@ export const Select = <T extends GenericOption<DefaultOptionValue>[]>(
135
);
136
};
137
138
-Select.displayName = symToStr({ Select });
139
-
140
const ForwardedSelect = forwardRef(Select) as <T extends GenericOption<DefaultOptionValue>[]>(
141
props: SelectProps<T> & { ref?: ForwardedRef<HTMLDivElement> }
142
) => ReturnType<typeof Select>;
143
144
-const MemoizedSelect = memo(ForwardedSelect) as typeof ForwardedSelect;
+const MemoizedSelect = memo(ForwardedSelect) as typeof ForwardedSelect & {
+ displayName: string;
+};
145
+MemoizedSelect.displayName = symToStr({ Select });
146
147
export default MemoizedSelect;
0 commit comments