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

AsyncCreatable Created option return className

Open msaglietto opened this issue 10 years ago • 4 comments

Hello ...

Im using AsyncCreatable on a project and I found out that when you create a new option it returns a object like Object {value: "new", label: "new", className: "Select-create-option-placeholder"}

Here is the example that returns the selected option to the console http://www.webpackbin.com/4y5MMilgz

Version 1.0.0-rc.2

msaglietto avatar Oct 31 '16 21:10 msaglietto

Comes from this line https://github.com/JedWatson/react-select/blame/master/src/Creatable.js#L259

alexjesp avatar Jan 16 '17 19:01 alexjesp

How do you get it not to return the className as this is part of object I want to send to the back end.

I could use lodash to omit it but would prefer to do it cleaner.

Thanks

cal0610 avatar Mar 16 '18 00:03 cal0610

any solutions? Wtf why is there a classname??

kkseven07 avatar Jun 18 '18 18:06 kkseven07

Hello -

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

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 / pull request 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 27 '20 07:05 bladey