fix(ui) - added delay on blur

This commit is contained in:
Shekar Siri 2022-02-02 12:59:13 +01:00
parent aef9d45c6c
commit ee02cf8b88
2 changed files with 2 additions and 2 deletions

View file

@ -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 }

View file

@ -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}