react-hook-form / input

📋 Wrapper component for controlled inputs
https://react-hook-form.com/api#Controller
158 stars 14 forks source link

Passing and using isClearable to React-Select generates 'Cannot read property 'label' of null' #25

Closed tylern-dev closed 4 years ago

tylern-dev commented 4 years ago

Passing and using isClearable to React-Select generates 'Cannot read property 'label' of null' . This can also be seen in the React Hook Form Input demo on code sandbox where isClearable is being used in the RHFInput props being passed to React-Select.

Codesandbox link https://codesandbox.io/s/react-hook-form-hookforminput-rzu9s

Expected behavior Should be able to press the 'X' to clear the input

bluebill1049 commented 4 years ago

thanks @tylern88