Skip to content

Commit

Permalink
empty autocomplete input value if no data was found
Browse files Browse the repository at this point in the history
  • Loading branch information
beppo-ivel committed Oct 10, 2020
1 parent 2d58858 commit 67031fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_ROToolbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,9 @@ function createAutoComplete(tag, tagElement) {
if (_.isUndefined(dataItem.BaseId)) {
dataItem.BaseId = !_.isUndefined(dataItem.Id) ? dataItem.Id : null;
}
}else{
//clear input value if data isn't found
this.value("");
}

newData.pop();
Expand Down

0 comments on commit 67031fb

Please sign in to comment.