React-select: Name is not returned in Creatable 'select-option' action

Created on 8 Jan 2019  路  6Comments  路  Source: JedWatson/react-select

I'm using both Creatable and normal Select elements in my app, but when I input a "new" value to a Creatable one, the "actionMeta" object has only the action: 'select-option' and not the name of the select field that triggered the action. I think they should behave in the same way.

I've made a sandbox here:
https://codesandbox.io/s/nw1pklvykj

If you choose an existing option (from both of the select) it outputs on the console:
(notice: ' name: "standard" and name: "creatable")

Object {value: "ocean", label: "Ocean", color: "#00B8D9"}
Object {action: "select-option", option: undefined, name: "standard"}
Object {value: "ocean", label: "Ocean", color: "#00B8D9"}
Object {action: "select-option", option: undefined, name: "creatable"}

But if you input a "new value" on the Creatable it outputs :
(notice: no name here!)

Object {label: "DarkGreen", value: "DarkGreen", __isNew__: true}
Object {action: "create-option"}
issubug-unconfirmed issureviewed

Most helpful comment

Running into this same issue. Would love to see consistency with the Meta object.

All 6 comments

Running into this same issue. Would love to see consistency with the Meta object.

Curious to know if any work was done on this yet?

Any pointers or reference if this is tracked in an different ticket or an alternate solution to this

@sahilsharmafrank, how do I use that file in my react project?

Facing the same issue.

Greetings,

It would seem that this bug was patched in v3.0.8 and this should no longer be an issue.
Screen Shot 2020-12-03 at 11 08 39 PM

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MindRave picture MindRave  路  3Comments

juliensnz picture juliensnz  路  3Comments

joshualimpj picture joshualimpj  路  3Comments

sampatbadhe picture sampatbadhe  路  3Comments

pashap picture pashap  路  3Comments