sanusart / react-dropdown-select

Customisable dropdown select for react
https://react-dropdown-select.netlify.app/
MIT License
349 stars 83 forks source link

Property "values" is missing #269

Closed jin-yee closed 1 year ago

jin-yee commented 1 year ago

I cannot get this working by referring to the basic, minimum working example from md file. The error shows up is

Property 'values' is missing in type '{ options: {}[]; onChange: { (...data: any[]): void; (message?: any, ...optionalParams: any[]): void; }; }' but required in type 'SelectProps<{}>'.

image

I'm using React (18.0.28) with Typescript, the react-dropdown-select library is of version 4.9.3.

sanusart commented 1 year ago

Seem to be working fine on code sandbox https://codesandbox.io/s/pensive-tom-xu21qj?file=/src/App.js

On Thu, Feb 16, 2023 at 9:27 AM jin-yee @.***> wrote:

I cannot get this working by referring to the basic, minimum working example from md file. The error shows up is

Property 'values' is missing in type '{ options: {}[]; onChange: { (...data: any[]): void; (message?: any, ...optionalParams: any[]): void; }; }' but required in type 'SelectProps<{}>'.

[image: image] https://user-images.githubusercontent.com/23400320/219296496-289aa309-546f-4e92-9973-e076da6b80d2.png

I'm using React (18.0.28) with Typescript, the react-dropdown-select library is of version 4.9.3.

— Reply to this email directly, view it on GitHub https://github.com/sanusart/react-dropdown-select/issues/269, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACBLRXDSNISLG7GVXPTUGLWXXJGBANCNFSM6AAAAAAU5ZKOEY . You are receiving this because you are subscribed to this thread.Message ID: @.***>