2
0
mirror of https://github.com/frappe/books.git synced 2025-01-08 17:24:05 +00:00

fix(ux): unset link value if no matches

This commit is contained in:
18alantom 2021-11-25 15:47:47 +05:30
parent 9fa7968fe2
commit f4b14bc0da

View File

@ -125,10 +125,11 @@ export default {
const suggestion = await this.getSuggestions(value);
if (suggestion.length < 2) {
return;
this.linkValue = '';
this.triggerChange('');
} else {
this.setSuggestion(suggestion[0]);
}
this.setSuggestion(suggestion[0]);
}
},
onInput(e) {