mirror of
https://github.com/frappe/books.git
synced 2025-01-26 00:28:25 +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);
|
option = this.options.find((o) => o.label === value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!value && option === undefined) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return option?.label ?? oldValue;
|
return option?.label ?? oldValue;
|
||||||
},
|
},
|
||||||
async updateSuggestions(keyword) {
|
async updateSuggestions(keyword) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user