hc-oss / react-multi-select-component

Lightweight (~5KB gzipped) multiple selection dropdown component

Home Page:https://codesandbox.io/s/react-multi-select-example-uqtgs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Close the dropdown on button click

rahulsavaria opened this issue · comments

commented

Is your feature request related to a problem? Please describe.
A call to an api when the values from the dropdown are selected. ( don't want to call on each value select e.g when user select option1 and option2 then click on apply button the dropdown should close and get the selected values)

Describe the solution you'd like
A button called Apply to close the dropdown and get the select values.

Describe alternatives you've considered
An explicit way from code to the close dropdown.