Fix onBlur bug
This commit is contained in:
parent
76ca9d787d
commit
1ba3a88780
|
@ -65,7 +65,10 @@ export default function AppSearch(props) {
|
||||||
onClear={handleClear}
|
onClear={handleClear}
|
||||||
onSelect={handleSelect}
|
onSelect={handleSelect}
|
||||||
onFocus={props.onFocus}
|
onFocus={props.onFocus}
|
||||||
onBlur={() => props.onBlur() && handleClear()}
|
onBlur={() => {
|
||||||
|
props.onBlur();
|
||||||
|
handleClear();
|
||||||
|
}}
|
||||||
notFoundContent={null} // todo: make this search history
|
notFoundContent={null} // todo: make this search history
|
||||||
style={{
|
style={{
|
||||||
width: props.width || '300px',
|
width: props.width || '300px',
|
||||||
|
|
Loading…
Reference in New Issue