This commit is contained in:
Mirco Wittrien 2019-11-06 21:44:01 +01:00
parent 6566779387
commit a7d296bcaf
2 changed files with 3 additions and 3 deletions

View File

@ -6650,8 +6650,8 @@ var BDFDB = {
handleClear() {
this.props.query = "";
BDFDB.ReactUtils.forceUpdate(this);
if (this.props.changeOnClear && typeof this.props.onChange == "function") this.props.onChange(query, this);
if (typeof this.props.onChange == "function") this.props.onClear(this);
if (this.props.changeOnClear && typeof this.props.onChange == "function") this.props.onChange("", this);
if (typeof this.props.onClear == "function") this.props.onClear(this);
}
render() {
let props = Object.assign({}, this.props, {

File diff suppressed because one or more lines are too long