javascript - Remove selected Focus on react-select -


i have react-select when use keypad select option remains focused , on subsequent similar searches (that bring same result) has existing selection focused. have searched documentation cannot find out how reset focused/previous value.

i have tried reset removing states cannot remove selected value when selected keyboard.

this occurs when option selected keyboard , not when clicked mouse.

<creatable               id="navsearchbox"               ref="search_nav"               classname="nav-select animated fadein"               name="searchfilter"               placeholder={placeholder}               deleteremoves={false}               value={this.state.value}               options={this.state.options}               backspaceremoves={true}               isloading={false}               clearable={false}               allowcreate={false}               cache={{}}               onfocus={this.handleclear}               noresultstext={null}               addlabeltext={null}               onchange={this.handlecategorychange}               oninputchange={this.handlechange}               optioncomponent={optioncomponent}               selectedvalue={""}               onselectresetsinput={true}               valuecomponent={valuecomponent}             /> 

in submit methods clear options , value

  handleclear(){     this.setstate({       value : null,       options : [],     })   } 

the issue

enter image description here


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -