This commit is contained in:
Mirco Wittrien 2020-12-22 17:52:24 +01:00
parent 52e8211329
commit 8038b4c87b
2 changed files with 4 additions and 4 deletions

View File

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

View File

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