mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
parent
d8af45d662
commit
29a47b0c7d
@ -62,7 +62,11 @@ class SearchInput extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
handleSearch = value => {
|
handleSearch = value => {
|
||||||
fetch(value, data => this.setState({ data }));
|
if (value) {
|
||||||
|
fetch(value, data => this.setState({ data }));
|
||||||
|
} else {
|
||||||
|
this.setState({ data: [] });
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
handleChange = value => {
|
handleChange = value => {
|
||||||
|
Loading…
Reference in New Issue
Block a user