Name is not returned in Creatable 'select-option' action
See original GitHub issueI’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"}
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
Select List not working properly with selectoption items
Hi,. You have to call the any action on the change of the picklist value on the vf page by using the apex:actionFunction...
Read more >when using {react-select} Cannot read property 'name' of ...
name : The name given to the Select component using the name prop. So if you want to use the name : onDataChange={(value,...
Read more >API - React Select
A flexible and beautiful Select Input control for ReactJS with multiselect, autocomplete and ajax support.
Read more >Select function in Power Apps - Power Platform - Microsoft Learn
Simulates a select action on a control, causing the OnSelect ... Add a Button control, and rename it Button1 if it has a...
Read more >Select Lists in a Razor Pages Form
You can create a SelectList from any collection but you need to specify the ... names (being restricted to what is permitted by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Running into this same issue. Would love to see consistency with the Meta object.
Greetings,
It would seem that this bug was patched in v3.0.8 and this should no longer be an issue.