question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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"}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

7reactions
TallOrderDevcommented, Jan 17, 2019

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

0reactions
ebonowcommented, Dec 7, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found