is.selectedItem && this.selectedItem.name != this.query) {
      this.selectedItem = undefined;
    }
  },

  scrollLocusIntoView() {
    const elements = this.$.dropdown.items || [];
    for (const element of elements) {
      if (element.item === this.locusItem) {
        element.scrollIntoView(false);
        return;
      }
    }
  },

  onItemsChanged() {
    this.updateSelected();
  },

  updateSelected() {
    this.muffleSelection = true;
    (() => {
      this.$.dropdown.selected = undefined;
     