Skip to content

Commit

Permalink
Fix issue in #223
Browse files Browse the repository at this point in the history
```
React does not recognize the `getClassNames` prop on a DOM element
```
  • Loading branch information
csandman committed Dec 2, 2022
1 parent 6e0f051 commit 3d4b5f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils.ts
@@ -1,9 +1,11 @@
import type { CommonPropsAndClassName, GroupBase } from "react-select";

/**
* Clean Common Props
*
* Borrowed from the original `react-select` package
*
* @see {@link https://github.com/JedWatson/react-select/blob/2d3d6afe18421ea5b6c3f8f0db479ad323c35639/packages/react-select/src/utils.ts#L74}
* @see {@link https://github.com/JedWatson/react-select/blob/5d960cc31670dcd9c8f17341f9111349ec66aa21/packages/react-select/src/utils.ts#L75}
*/
export const cleanCommonProps = <
Option,
Expand All @@ -23,6 +25,7 @@ export const cleanCommonProps = <
clearValue,
cx,
getStyles,
getClassNames,
getValue,
hasValue,
isMulti,
Expand Down

0 comments on commit 3d4b5f6

Please sign in to comment.