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.

Createable does work according to example/docs

See original GitHub issue

So this has been driving me for nuts for hours and I’m just not convinced that it works as advertised in the simplest example here at here

The example below reflects a simple adaption (no Typescript) of the example there and NOTHING I can do in terms of props will get it to generate the “Create xxx” display of the new option being entered in the control that appears at the bottom of the options list in the sample.

Can you tell me if the sample is broken, there’s a bug somewhere, or I just don’t get it?

import React from "react";
import ReactDOM from "react-dom";
import Creatable from 'react-select'

function App() {
  let options = [{ label: 'Item11', value: 1 }, 
                 {  label: 'Item12', value: 2 }]
  return (
    <div className="App">
      <h1>Hello CodeSandbox</h1>
     <Creatable options={options}/>
    </div>
  );
}

const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ajaymathurcommented, Nov 16, 2018

@rovnyart Team is already aware of the issue and there is a PR to fix this. Please take a look at https://github.com/JedWatson/react-select/pull/2990 🙂

0reactions
bladeycommented, May 28, 2020

Hello -

In an effort to sustain the react-select project going forward, we’re closing old issues.

We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our efforts towards the current major version.

If you aren’t using the latest version of react-select please consider upgrading to see if it resolves any issues you’re having.

However, if you feel this issue is still relevant and you’d like us to review it - please leave a comment and we’ll do our best to get back to you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solr - Adding JSON Document - Stack Overflow
The json file books.json exist in the exampledocs directory, so according to ... around parameters might not do what you expect them to...
Read more >
Hubspot Working Example - Docs & Tutorials - n8n community
Is there anyone to help me to create a workflow for an Hubspot Form Submit, I couldn't make it work. Hubspot Integration [GOT...
Read more >
Uploading Data with Solr Cell using Apache Tika
Working with this framework, Solr's ExtractingRequestHandler uses Tika internally ... This command will simply start Solr and create a core/collection named ...
Read more >
Python Read JSON File – How to Load ... - freeCodeCamp
How JSON and Python Dictionaries work together. ... JSON format to create a Python dictionary that we can access, work with, and modify....
Read more >
Doesnt work Creatable #3417 - JedWatson/react-select - GitHub
HI! Thank you a lot for react-select 2 ! Very cool select. But i have one problem/bug with Creatable. In v2 you change...
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