Skip to content

Commit

Permalink
Make 3rd argument of CommonProps['setValue'] optional (#4908)
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Bierema <nbierema@gmail.com>
  • Loading branch information
vjee and Methuselah96 committed Jan 13, 2022
1 parent 940a50b commit e97d45c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/stale-baboons-float.md
@@ -0,0 +1,5 @@
---
'react-select': patch
---

Make 3rd argument of CommonProps['setValue'] optional.
2 changes: 1 addition & 1 deletion packages/react-select/src/types.ts
Expand Up @@ -89,7 +89,7 @@ export interface CommonProps<
setValue: (
newValue: OnChangeValue<Option, IsMulti>,
action: SetValueAction,
option: Option
option?: Option
) => void;
theme: Theme;
}
Expand Down

0 comments on commit e97d45c

Please sign in to comment.