client/public/elements/components/search.js
/**
   * @method updated
   * @description Lit method called when element updates
   * @param {Map} props - Changed properties
   */
@method updated
@description Lit method called when element updates
@param {Map} props - Changed properties
@method updated @description Lit method called when element updates @param { Map } props - Changed properties
updated(props) {
    if (props.has('inputValue') || props.has('activeFacet')) {
      this.searchObject = {search: this.inputValue, facet: this.getDropdownOptions()[this.activeFacet]};
    }
    if ( props.has('activeFacet') ) {
      this.shadowRoot.getElementById('input').focus();
    }
  }
updated ( props ) { if ( props . has ( 'inputValue' ) || props . has ( 'activeFacet' ) ) { this . searchObject = { search : this . inputValue , facet : this . getDropdownOptions ( ) [ this . activeFacet ] } ; } if ( props . has ( 'activeFacet' ) ) { this . shadowRoot . getElementById ( 'input' ) . focus ( ) ; } }
@method updated
 @description Lit method called when element updates
 @param {Map} props - Changed properties
@method updated @description Lit method called when element updates @param { Map } props - Changed properties