Fix onBlur bug

This commit is contained in:
Nathaniel Parke 2020-11-06 18:06:52 +08:00
parent 76ca9d787d
commit 1ba3a88780
1 changed files with 4 additions and 1 deletions

View File

@ -65,7 +65,10 @@ export default function AppSearch(props) {
onClear={handleClear}
onSelect={handleSelect}
onFocus={props.onFocus}
onBlur={() => props.onBlur() && handleClear()}
onBlur={() => {
props.onBlur();
handleClear();
}}
notFoundContent={null} // todo: make this search history
style={{
width: props.width || '300px',