aaaaa
This commit is contained in:
parent
52e8211329
commit
8038b4c87b
|
@ -407,7 +407,7 @@ module.exports = (_ => {
|
|||
autoFocus: true,
|
||||
query: this.props.searchString,
|
||||
onChange: (value, instance) => {
|
||||
if (!loading.is) return;
|
||||
if (loading.is) return;
|
||||
BDFDB.TimeUtils.clear(searchTimeout);
|
||||
searchTimeout = BDFDB.TimeUtils.timeout(_ => {
|
||||
this.props.searchString = list.props.searchString = value.replace(/[<|>]/g, "");
|
||||
|
@ -415,7 +415,7 @@ module.exports = (_ => {
|
|||
}, 1000);
|
||||
},
|
||||
onClear: instance => {
|
||||
if (!loading.is) return;
|
||||
if (loading.is) return;
|
||||
this.props.searchString = list.props.searchString = "";
|
||||
BDFDB.ReactUtils.forceUpdate(this, list);
|
||||
}
|
||||
|
|
|
@ -699,7 +699,7 @@ module.exports = (_ => {
|
|||
autoFocus: true,
|
||||
query: this.props.searchString,
|
||||
onChange: (value, instance) => {
|
||||
if (!loading.is) return;
|
||||
if (loading.is) return;
|
||||
BDFDB.TimeUtils.clear(searchTimeout);
|
||||
searchTimeout = BDFDB.TimeUtils.timeout(_ => {
|
||||
this.props.searchString = list.props.searchString = value.replace(/[<|>]/g, "");
|
||||
|
@ -707,7 +707,7 @@ module.exports = (_ => {
|
|||
}, 1000);
|
||||
},
|
||||
onClear: instance => {
|
||||
if (!loading.is) return;
|
||||
if (loading.is) return;
|
||||
this.props.searchString = list.props.searchString = "";
|
||||
BDFDB.ReactUtils.forceUpdate(this, list);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue