JedWatson / react-select

The Select Component for React.js
https://react-select.com/
MIT License
27.63k stars 4.13k forks source link

React Select creatable is adding Create \label\ sometimes and mostly when we slow the cpu to 6X #4758

Open jossh88 opened 3 years ago

jossh88 commented 3 years ago

Thanks for using react-select!

Before creating an issue...

Are you asking a question?

Please don't file GitHub issues to ask questions. Use Stack Overflow with a #react-select tag.

Are you reporting a bug or runtime error?

Please include a test case that demonstrates the issue you're reporting!

This is very helpful to maintainers in order to help us see the issue you're seeing.

Please note we are currently only directing our efforts towards the current major (v3) version and beyond.

We understand this might be inconvenient but it is in the best interest of supporting the broader community and to sustain the react-select project going forward.

To report bugs against react-select v3 please fork the following code-sandbox: https://codesandbox.io/s/react-select-v3-sandbox-jgdch

To report bugs against react-select v2 please fork the following code-sandbox: https://codesandbox.io/s/k5rvn9z3lv

To report bugs against react-select v1 please fork the following code-sandbox: https://codesandbox.io/s/n34mq0743j

You may also find the online Babel tool quite helpful if you wish to use ES6/ES7 syntax not yet supported by the browser you are using.

Are you making a feature request?

Provide as much information as possible about your requested feature. Here are a few questions you may consider answering:

It's not reproducible most of the time but if we slow CPU 6x times and try to create an option using creatable its coming.

Rall3n commented 2 years ago

Hello @jossh88,

I apologize for the late reply to your issue.

If I understand you correctly (and you may correct me if I misunderstood) you do not expect the Create ... to exist at all in your list of options.

Unfortunately I can't see anything wrong with that. The Create ... option is the core feature of the Creatable component with which you trigger the creation of a new option.

I suggest you change to the Select component if you don't want this feature.