connectedCallback() {
    if (!this.container?.querySelector) {
      // Empty Dropdown
      this.container = document.createElement('ids-trigger-field');
    }
    this.popup = this.shadowRoot?.querySelector('ids-popup');
    this.inputRoot = this.shadowRoot?.querySelector('ids-input');
    this.fieldContainer = this.container?.querySelector('ids-input')?.shadowRoot?.querySelector('.field-container');
    this.trigger = this.shadowRoot?.querySelector('ids-trigger-button');
    this.input = this.inputRoot?.shadowRoot?.querySelector('input');
    this.triggerContent = this.container?.shadowRoot?.querySelector('.ids-trigger-field-content');
    this.triggerField = this.container?.shadowRoot?.querySelector('.ids-trigger-field');
    this.listBox = this.querySelector('ids-list-box');
    this.labelEl = this.inputRoot?.shadowRoot?.querySelector('label');

    this
      .#addAria()
      .#attachEventHandlers()
      .#attachKeyboardListeners();
    super.connectedCallback();
  }
/**
   * Invoked each time the custom element is appended into a document-connected element.
   */
Invoked each time the custom element is appended into a document-connected element.
Invoked each time the custom element is appended into a document - connected element .
connectedCallback() {
    if (!this.container?.querySelector) {
      this.container = document.createElement('ids-trigger-field');
    }
    this.popup = this.shadowRoot?.querySelector('ids-popup');
    this.inputRoot = this.shadowRoot?.querySelector('ids-input');
    this.fieldContainer = this.container?.querySelector('ids-input')?.shadowRoot?.querySelector('.field-container');
    this.trigger = this.shadowRoot?.querySelector('ids-trigger-button');
    this.input = this.inputRoot?.shadowRoot?.querySelector('input');
    this.triggerContent = this.container?.shadowRoot?.querySelector('.ids-trigger-field-content');
    this.triggerField = this.container?.shadowRoot?.querySelector('.ids-trigger-field');
    this.listBox = this.querySelector('ids-list-box');
    this.labelEl = this.inputRoot?.shadowRoot?.querySelector('label');
    this
      .#addAria()
      .#attachEventHandlers()
      .#attachKeyboardListeners();
    super.connectedCallback();
  }
connectedCallback ( ) { if ( ! this . container ?. querySelector ) { this . container = document . createElement ( 'ids-trigger-field' ) ; } this . popup = this . shadowRoot ?. querySelector ( 'ids-popup' ) ; this . inputRoot = this . shadowRoot ?. querySelector ( 'ids-input' ) ; this . fieldContainer = this . container ?. querySelector ( 'ids-input' ) ?. shadowRoot ?. querySelector ( '.field-container' ) ; this . trigger = this . shadowRoot ?. querySelector ( 'ids-trigger-button' ) ; this . input = this . inputRoot ?. shadowRoot ?. querySelector ( 'input' ) ; this . triggerContent = this . container ?. shadowRoot ?. querySelector ( '.ids-trigger-field-content' ) ; this . triggerField = this . container ?. shadowRoot ?. querySelector ( '.ids-trigger-field' ) ; this . listBox = this . querySelector ( 'ids-list-box' ) ; this . labelEl = this . inputRoot ?. shadowRoot ?. querySelector ( 'label' ) ; this . #addAria ( ) . #attachEventHandlers ( ) . #attachKeyboardListeners ( ) ; super . connectedCallback ( ) ; }
Invoked each time the custom element is appended into a document-connected element.
Invoked each time the custom element is appended into a document - connected element .
// Empty Dropdown