Changed setValue to clear
This commit is contained in:
parent
de314b897e
commit
fb4ec75d56
|
@ -285,11 +285,10 @@ SearchBox.prototype._onKeyUp = function (event) {
|
|||
};
|
||||
|
||||
/**
|
||||
* Set search text. Will apply a new search
|
||||
* @param {string} value
|
||||
* Clear the search results
|
||||
*/
|
||||
SearchBox.prototype.setValue = function (value) {
|
||||
this.dom.search.value = value;
|
||||
SearchBox.prototype.clear = function () {
|
||||
this.dom.search.value = '';
|
||||
this._onSearch();
|
||||
};
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@ treemode.set = function (json, name) {
|
|||
}
|
||||
|
||||
// clear search
|
||||
this.searchBox.setValue('');
|
||||
this.searchBox.clear();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue