      this.selectedItem = null;
                this.input.value = '';
                this.clearBtn.style.display = 'none';
                this.searchInput.value = '';
                this.filteredData = [...this.data];
                this.renderOptions();
                this.onClear();
            }
            
            toggle() {
                if (this.isOpen) {
                    this.close();
                } else {
                    this.open();
                }
            }
           