Creatable not working
See original GitHub issueI am trying to use creatable, but the option to add new item does not show.
Am I missing something?
`
render() {
return (
<Creatable
multi={true}
options={this.state.options}
onChange={this.handleSelectChange.bind(this)}
value={this.state.backupsSelected}
valueKey="email"
labelKey="email"
isLoading={this.state.isLoading}
newOptionCreator={this.newOption.bind(this)}
/>
);
}
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
React-select {creatable} to work with user typed entry as only ...
I have made the attached component for a bootstrap table. I can see my hard coded labels the same way I would using...
Read more >Sudo gitlab-backup create not working - Migrations
Hello community, I am trying to make a backup of the gitlab ce (v13.3.9) but I am getting an error: /usr/bin/gitlab-backup: line 69:...
Read more >F7.notification.create Not working - Framework7 Forum
I'm trying to create a notification in Vue. ... console.log(f7) showing all the methods but still, I don't see the notification. What am...
Read more >PCF: Quick Create form field mapping not working
I have developed PCF control to pull city and state based on Zip Code. PCF control is not showing value when I try...
Read more >How to use the react-select.Creatable function in react ... - Snyk
Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues...
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
just incase others come here, the take away from the fiddle is that you need to add the value to the state and concat it to the
options
prop to the select:or something like that
i got stuck on this as well when using
Creatable
withredux-form
. creating a new option worked, but when blurring the Field the input value was blanked. i had to keep track ofcreatedOptions
in local state andconcat
it withprops.options
so that the new options weren’t lost on re-render.most of this source is from another author - someone either on SO or in the issues here but i can find his name atm to give credit. i added the
onNewOptionClick
callback and local state.component:
used with
redux-form
’sField