set value(value) {
    const elem = this.selectedOption;
    if (!elem) {
      return;
    }
    this.#clearSelected();
    this.#selectOption(elem);
    this.#selectIcon(elem);
    this.#selectTooltip(elem);
    this.shadowRoot.querySelector('ids-input').value = elem.textContent.trim();
    this.state.selectedIndex = [...elem.parentElement.children].indexOf(elem);

    // Send the change event
    if (this.value === value) {
      this.triggerEvent('change', this, {
        detail: {
          elem: this,
          value: this.value
        }
      });
    }
    this.setAttribute('value', value);
  }
/**
   * Set the value of the dropdown using the value/id attribute if present
   * @param {boolean|string} value The value/id to use
   */
Set the value of the dropdown using the value/id attribute if present
@param {boolean|string} value The value/id to use
Set the value of the dropdown using the value / id attribute if present @param { boolean|string } value The value / id to use
set value(value) {
    const elem = this.selectedOption;
    if (!elem) {
      return;
    }
    this.#clearSelected();
    this.#selectOption(elem);
    this.#selectIcon(elem);
    this.#selectTooltip(elem);
    this.shadowRoot.querySelector('ids-input').value = elem.textContent.trim();
    this.state.selectedIndex = [...elem.parentElement.children].indexOf(elem);
    if (this.value === value) {
      this.triggerEvent('change', this, {
        detail: {
          elem: this,
          value: this.value
        }
      });
    }
    this.setAttribute('value', value);
  }
set value ( value ) { const elem = this . selectedOption ; if ( ! elem ) { return ; } this . #clearSelected ( ) ; this . #selectOption ( elem ) ; this . #selectIcon ( elem ) ; this . #selectTooltip ( elem ) ; this . shadowRoot . querySelector ( 'ids-input' ) . value = elem . textContent . trim ( ) ; this . state . selectedIndex = [ ... elem . parentElement . children ] . indexOf ( elem ) ; if ( this . value === value ) { this . triggerEvent ( 'change' , this , { detail : { elem : this , value : this . value } } ) ; } this . setAttribute ( 'value' , value ) ; }
Set the value of the dropdown using the value/id attribute if present
 @param {boolean|string} value The value/id to use
Set the value of the dropdown using the value / id attribute if present @param { boolean|string } value The value / id to use
// Send the change event