2
0
mirror of https://github.com/frappe/books.git synced 2025-01-09 17:53:56 +00:00

fix: allow autocomplete to set and display null values

This commit is contained in:
18alantom 2023-02-04 12:08:19 +05:30
parent 6e64f4f93d
commit 18c3d56b68

View File

@ -108,6 +108,10 @@ export default {
option = this.options.find((o) => o.label === value);
}
if (!value && option === undefined) {
return null;
}
return option?.label ?? oldValue;
},
async updateSuggestions(keyword) {