// Prevent focus moving to the drop down.
    event.preventDefault();
  },

  /**
    * Handles item selected on drop-down menu.
    */
  onDropdownSelect(event, detail) {
    if (this.shouldIgnoreSelectionEvents()) return;
    this.$.textbox.focus();
    const index = this.$.dropdown.indexOf(detail.item);
    const item = this.suggestedItems[index];
    this.selectItem(item);
    this.$.textbox.readonly = true;
  },
});
</script>
