set tabIndex(val) {
    const trueVal = Number(val);

    if (Number.isNaN(trueVal) || trueVal < -1) {
      this.state.tabIndex = 0;
      this.button.setAttribute(attributes.TABINDEX, '0');
      this.removeAttribute(attributes.TABINDEX);
      return;
    }

    this.state.tabIndex = trueVal;
    this.button.setAttribute(attributes.TABINDEX, `${trueVal}`);
  }
/**
   * Passes a tabIndex attribute from the custom element to the button
   * @param {number} val the tabIndex value
   * @returns {void}
   */
Passes a tabIndex attribute from the custom element to the button
@param {number} val the tabIndex value
@returns {void}
Passes a tabIndex attribute from the custom element to the button @param { number } val the tabIndex value @returns { void }
set tabIndex(val) {
    const trueVal = Number(val);
    if (Number.isNaN(trueVal) || trueVal < -1) {
      this.state.tabIndex = 0;
      this.button.setAttribute(attributes.TABINDEX, '0');
      this.removeAttribute(attributes.TABINDEX);
      return;
    }
    this.state.tabIndex = trueVal;
    this.button.setAttribute(attributes.TABINDEX, `${trueVal}`);
  }
set tabIndex ( val ) { const trueVal = Number ( val ) ; if ( Number . isNaN ( trueVal ) || trueVal < - 1 ) { this . state . tabIndex = 0 ; this . button . setAttribute ( attributes . TABINDEX , '0' ) ; this . removeAttribute ( attributes . TABINDEX ) ; return ; } this . state . tabIndex = trueVal ; this . button . setAttribute ( attributes . TABINDEX , ` ${ trueVal } ` ) ; }
Passes a tabIndex attribute from the custom element to the button
 @param {number} val the tabIndex value
 @returns {void}
Passes a tabIndex attribute from the custom element to the button @param { number } val the tabIndex value @returns { void }