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:
parent
9fa7968fe2
commit
f4b14bc0da
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user