makeCreatableSelect(...) not working
See original GitHub issueHey,
I’m trying to create a creatable select using makeCreatableSelect(...)
. The default export <CreatableSelect />
component works as expected. However when I switch to using makeCreatableSelect(...)
, I don’t get the option to create a new entry anymore.
Replicated in this CodeSandbox: https://codesandbox.io/s/modest-chandrasekhar-u8yki?file=/src/App.js
Or is it me not properly using makeCreatableSelect(...)
?
Best regards
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
Developers - makeCreatableSelect(...) not working - - Bountysource
Hey,. I'm trying to create a creatable select using makeCreatableSelect(...) . The default export <CreatableSelect /> component works as expected.
Read more >React Select Creatable "no options" instead of "create"
I think your problem here comes from your custom filter implementation. This a little bit tricky, because from the docs there is no...
Read more >Upgrade guide - React Select
A flexible and beautiful Select Input control for ReactJS with multiselect, autocomplete and ajax support.
Read more >react-select - Awesome JS
IE11 no longer works as it does not fully support CSS grid; Renaming the .prefix__input now targets the input and NOT the container....
Read more >TypeScript react-select cheat sheet - SaltyCrane
... defaultProps (var); makeCreatableSelect (function); Props<OptionType extends OptionTypeBase, IsMulti, GroupType extends GroupTypeBase> (type) ...
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
I’ve run into this issue as well. My use-case is to make creatable from custom react-select component (basically just extending Select and rewriting one method). That’s what
makeCreatableSelect()
is useful for but now I am unable to do it.Hey @ebonow ,
I think this is very confusing from an API standpoint, as
makeAsyncSelect
f.e. can also be used without any issues. In additionmakeCreatableSelect
is mentioned in the docs, so one would expect it to work.I am aware that it apparently doesn’t work because the StateManager is missing. This is because the
makeCreatableSelect
HOC depends on theinputValue
being a controlled property. I provided a PR to fix this issue and clean up the code a little.