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.

Select is not changing value

See original GitHub issue

Hello, I am using Select.Async but cant seem to make it show selected value, even tough onChange shows correct value. I have this

<Select.Async name="form-field-name" 
onChange={this._clientChange} 
autoload={false}
loadOptions={this.getOptions} />

options are successfully loaded (also loading bar is working) but when i click any element from select box input field remains empty. Any idea what could that be? what additional info can i provide?

Im using "react": "^0.14.1" and "react-select": "^1.0.0-beta5",

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
JedWatsoncommented, Nov 15, 2015

The component now requires you to handle the value independently and pass it as a prop, does this help? It looks like you’re not passing that in the code you’ve provided.

Check the examples to see how that works.

(previously, value would be managed internally, but this was causing a lot of problems so that feature has been removed for 1.0.0)

0reactions
santosh-k1commented, Jul 30, 2018

i have updated the version of react-select to “react-select”: “^2.0.0-beta.7”, which is working fine there is no to call the css

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Select option is not updated 'selected' property in HTML web ...
It's not change the html itself but it does change the value of the select. $('select').change(function(){ $('#result').html($(this).val()); ...
Read more >
html select is not working when manipulated from js
Using the selected property appears to confuse the browser. I've tried several iterations, and it seems to "randomly" confuse the values.
Read more >
The State change is not changing the value. It still displays ...
when the value it selected it doesn't update the value but the state is being changed. As it works in some components and...
Read more >
Dropdown box value is not updating when changed using ...
Hi,. When I try to change the value set in a select element using jQuery the value does not display on the screen,...
Read more >
SCR19: Using an onchange event on a select element ... - W3C
Navigate to the trigger select element, navigate through the options but do not change the value. Check that the matching option values are...
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