Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Dont warn whenever using controlled version of component (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Zukewich authored Dec 9, 2020
1 parent 51e5da1 commit 57363a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ interface Props

export const Select: React.FC<Props> = ({
children,
initialValue = "",
initialValue,
disabled = false,
feel,
labelPropsCallbackRef,
Expand All @@ -156,7 +156,7 @@ export const Select: React.FC<Props> = ({
...props
}) => {
const [uncontrolledValue, setUncontrolledValue] = React.useState(
initialValue
initialValue ?? ""
);

// Validate controlled versus uncontrolled
Expand Down

0 comments on commit 57363a6

Please sign in to comment.