mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
12085: fix customer search autofill issue
This commit is contained in:
@@ -6,6 +6,7 @@ export default class extends TomSelectController {
|
||||
static values = { options: Object, distributor: Number };
|
||||
|
||||
connect() {
|
||||
this.items = [];
|
||||
useSearchCustomer(this);
|
||||
useRenderCustomer(this);
|
||||
const options = {
|
||||
@@ -20,7 +21,6 @@ export default class extends TomSelectController {
|
||||
};
|
||||
super.connect(options);
|
||||
this.control.on("item_add", this.onItemSelect.bind(this));
|
||||
this.items = [];
|
||||
}
|
||||
|
||||
onItemSelect(id, item) {
|
||||
|
||||
Reference in New Issue
Block a user