283 | 284 | this.setLock(true)} 288 | onMouseLeave={() => this.setLock(false)} 289 | /> 290 | (this.inputValueSetter = fn)} 294 | className="search-control-input" 295 | placeholder={this.props.inputPlaceholder} 296 | onClick={this.inputClick} 297 | onMouseEnter={() => this.setLock(true)} 298 | onMouseLeave={() => this.setLock(false)} 299 | onChange={this.syncInput} 300 | onChangeAsync={this.sendToAction} 301 | onBlur={this.inputBlur} 302 | onKeyUp={this.inputKeyUp} 303 | onKeyPress={(e) => { 304 | e.stopPropagation(); 305 | e.keyCode === 40 && e.preventDefault(); 306 | }} 307 | onKeyDown={(e) => { 308 | // ArrowDown 40 309 | if (e.keyCode === 40) { 310 | e.preventDefault(); 311 | e.stopPropagation(); 312 | this.selectbox.current?.focus(); 313 | } 314 | // ArrowUp 38 315 | }} 316 | onSubmit={(e) => e.preventDefault()} 317 | /> 318 | 322 | 323 | 328 | 329 | {this.state.showInfo && this.SearchResponseInfo} 330 | 331 | 332 |