sanusart / react-dropdown-select

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

"Select All" feature #251

Closed jabdali closed 1 year ago

jabdali commented 1 year ago

I wonder if "Select All" feature is supported to allow selecting all the options with one click?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

sanusart commented 1 year ago

Available since v4.10.0

singwithaashish commented 6 months ago

Hi, how do i use it in react. the property selectAll doesn't exist. thanks

sanusart commented 6 months ago

https://react-dropdown-select.netlify.app/examples#With-select/clear-all

On Mon, 19 Feb 2024 at 9:52 AM aashish @.***> wrote:

Hi, how do i use it in react. the property selectAll doesn't exist. thanks

— Reply to this email directly, view it on GitHub https://github.com/sanusart/react-dropdown-select/issues/251#issuecomment-1951881637, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACBLRQI4GUTP6CCX7PBRFTYUMAEHAVCNFSM6AAAAAAR3UPKQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRHA4DCNRTG4 . You are receiving this because you modified the open/close state.Message ID: @.***>

singwithaashish commented 6 months ago

It's not working in react vite and typescript. I am getting this err..

image

Type '{ multi: true; selectAll: true; selectAllLabel: string; clearAllLabel: string; className: string; wrapperClassName: string; clearable: true; options: { value: number; label: string; }[]; values: { value: number; label: string; }[]; onChange: (values: { ...; }[]) => void; }' is not assignable to type 'IntrinsicAttributes & SelectProps<{ value: number; label: string; }>'. Property 'selectAll' does not exist on type 'IntrinsicAttributes & SelectProps<{ value: number; label: string; }>'. Did you mean 'onSelectAll'?ts(2322)

sanusart commented 6 months ago

Should be fixed via v4.11.2