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.

makeCreatableSelect(...) not working

See original GitHub issue

Hey,

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

1reaction
dakurcommented, Sep 14, 2020

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.

1reaction
marcesengelcommented, Sep 13, 2020

Hey @ebonow ,

I think this is very confusing from an API standpoint, as makeAsyncSelect f.e. can also be used without any issues. In addition makeCreatableSelect 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 the inputValue being a controlled property. I provided a PR to fix this issue and clean up the code a little.

Read more comments on GitHub >

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

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