.value;
                        const item = this.filteredData.find(i => i.code === value);
                        this.select(item);
                    });
                });
            }
            
            select(item) {
                this.selectedItem = item;
                this.input.value = item.name_with_type;
                this.clearBtn.style.display = 'block';
                this.close();
                this.onSelect(item);
            }
            
            clear() {
          