react-select icon indicating copy to clipboard operation
react-select copied to clipboard

Prop removeSelected not available

Open deathwebo opened this issue 9 years ago • 10 comments

Hello!

I was trying to use the removeSelected prop to keep the selected options in a multi select available, just as the doc says

Is this option not available yet ? Is it only available on a non-stable release ?

Thanks for the awesome library!

deathwebo avatar Oct 26 '17 19:10 deathwebo

Yeah, this option was just merged 6 days ago (if you look at this commit it says it's only in master, as opposed to being in any releases as well).

buob avatar Oct 30 '17 17:10 buob

I pulled down the repo and built locally - the option is there for me. However the NPM code does not seem to have the latest generated code in the lib folder. While debugging in chrome, I noticed the code did not align with what I see on github.

I copied my locally built lib folder to my consuming project and the option takes effect (works properly). Maybe just a build/pub thing? Hope that was clear - let me know if that makes sense.

smiket avatar Oct 30 '17 21:10 smiket

Adding to above comment - it looks like this recent change set configured the build artifacts to publish to NPM. So it could be that the code and the built lib/dist folders are out of sync, and perhaps another publish (including a fresh build) might resolve this. Hope it helps - let me know if I am off track here. And thanks for an awesome control :)

https://github.com/JedWatson/react-select/commit/78f269a772fa8d343ae584a78821ab6342a9423f#diff-b9cfc7f2cdf78a7f4b91a753d10865a2

smiket avatar Nov 01 '17 19:11 smiket

Has there been any progress on this?

Also, is there a good workaround for the time being? I've built react-select locally and the example page works, but I haven't had much luck trying to use npm link with the built folder.

B-Reif avatar Nov 14 '17 22:11 B-Reif

Just checking up on this update too. I see its only been a day since B-Reif asked, but I could really use this feature or a work around too.

erockdotdev avatar Nov 15 '17 22:11 erockdotdev

I doesn't work for me too.

eugenegodun avatar Nov 23 '17 05:11 eugenegodun

I (a random passer-by) just noticed that release v1.0.0 was published a few hours back; maybe that solves your issues.

fedde-s avatar Nov 23 '17 15:11 fedde-s

@fedde-s thanks, it was fixed.

eugenegodun avatar Nov 25 '17 12:11 eugenegodun

@deathwebo @buob @smiket @B-Reif @unit57 removeSelected has been renamed to hideSelectedOptions in v2.

close #2103

Sawan1994 avatar Sep 28 '18 10:09 Sawan1994

Hello -

In an effort to sustain the react-select project going forward, we're closing old issues.

We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our limited efforts to maintain the latest version.

If you aren't using the latest version of react-select please consider upgrading to see if it resolves any issues you're having.

However, if you feel this issue is still relevant and you'd like us to review it - please leave a comment and we'll do our best to get back to you!

bladey avatar May 28 '20 01:05 bladey