mirror of
https://github.com/frappe/books.git
synced 2025-01-09 09:50:27 +00:00
fix: allow autocomplete to set and display null values
This commit is contained in:
parent
6e64f4f93d
commit
18c3d56b68
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user