bharani91 / react-select-popover

A react component to convert a select box into a nifty popover with prepopulated options

Home Page:http://bharani91.github.io/react-select-popover

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do you clear selected values?

evilboss opened this issue · comments

Hi, I'm currently using your plugin for my current project, I'm relatively new to react and I was wondering how would i reset selected values for select-popover/

My fork at https://github.com/fiatjaf/react-select-popover has support for setting initially selected values, as well as changing the selected values by changing the props (see willReceiveProps), so this should be easy as changing the values to react-select-popover on the key value to [] (an empty array).

(To install: npm install --save fiatjaf/react-select-popover)