set disabled(val) {
    const isValueTruthy = stringToBool(val);
    this.shouldUpdate = false;
    if (isValueTruthy) {
      this.setAttribute(attributes.DISABLED, '');
    } else {
      this.removeAttribute(attributes.DISABLED);
    }

    this.shouldUpdate = true;
    this.state.disabled = isValueTruthy;

    if (this.button) {
      this.button.disabled = isValueTruthy;
    }
  }
/**
   * Passes a disabled attribute from the custom element to the button
   * @param {boolean|string} val true if the button will be disabled
   */
Passes a disabled attribute from the custom element to the button
@param {boolean|string} val true if the button will be disabled
Passes a disabled attribute from the custom element to the button @param { boolean|string } val true if the button will be disabled
set disabled(val) {
    const isValueTruthy = stringToBool(val);
    this.shouldUpdate = false;
    if (isValueTruthy) {
      this.setAttribute(attributes.DISABLED, '');
    } else {
      this.removeAttribute(attributes.DISABLED);
    }
    this.shouldUpdate = true;
    this.state.disabled = isValueTruthy;
    if (this.button) {
      this.button.disabled = isValueTruthy;
    }
  }
set disabled ( val ) { const isValueTruthy = stringToBool ( val ) ; this . shouldUpdate = false ; if ( isValueTruthy ) { this . setAttribute ( attributes . DISABLED , '' ) ; } else { this . removeAttribute ( attributes . DISABLED ) ; } this . shouldUpdate = true ; this . state . disabled = isValueTruthy ; if ( this . button ) { this . button . disabled = isValueTruthy ; } }
Passes a disabled attribute from the custom element to the button
 @param {boolean|string} val true if the button will be disabled
Passes a disabled attribute from the custom element to the button @param { boolean|string } val true if the button will be disabled