fix(ui) - added delay on blur
This commit is contained in:
parent
aef9d45c6c
commit
ee02cf8b88
2 changed files with 2 additions and 2 deletions
|
|
@ -101,7 +101,7 @@ function FilterAutoComplete(props: Props) {
|
|||
<input
|
||||
name="query"
|
||||
onChange={ onInputChange }
|
||||
onBlur={ () => setTimeout(() => { setShowModal(false) }, 50) }
|
||||
onBlur={ () => setTimeout(() => { setShowModal(false) }, 150) }
|
||||
onFocus={ () => setShowModal(true)}
|
||||
value={ query }
|
||||
autoFocus={ true }
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ function SessionSearchField(props: Props) {
|
|||
inputProps={ { "data-openreplay-label": "Search", "autocomplete": "off" } }
|
||||
className={stl.searchField}
|
||||
onFocus={ () => setShowModal(true) }
|
||||
onBlur={ () => setTimeout(setShowModal, 50, false) }
|
||||
onBlur={ () => setTimeout(setShowModal, 200, false) }
|
||||
// ref={ this.inputRef }
|
||||
onChange={ onSearchChange }
|
||||
// onKeyUp={this.onKeyUp}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue