Changed(_itemsChange) {
    let preservedSelectedItem = null;
    const items = this.items || [];
    if (this.selectedItem) {
      for (const newItem of items) {
        if (this.itemEquals(this.selectedItem, newItem)) {
          preservedSelectedItem = newItem;
          break;
        }
      }
    }
    this.set('selectedItem', preservedSelectedItem);
  },

  selectedItemChanged(_selectedItemsChange) {
    this.fire('dropdownselect');
    if (this.selectedItem) this.set('query', this.selectedItem.name