@ni/spright-components 5.5.5 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -93812,17 +93812,6 @@ focus outline in that case.
93812
93812
  */
93813
93813
  this.disableSendButton = true;
93814
93814
  }
93815
- /**
93816
- * Clears the text input and gives it focus.
93817
- */
93818
- resetInput() {
93819
- this.value = '';
93820
- this.disableSendButton = true;
93821
- if (this.textArea) {
93822
- this.textArea.value = '';
93823
- this.textArea.focus();
93824
- }
93825
- }
93826
93815
  /**
93827
93816
  * @internal
93828
93817
  */
@@ -93867,11 +93856,20 @@ focus outline in that case.
93867
93856
  const eventDetail = {
93868
93857
  text: this.textArea.value
93869
93858
  };
93859
+ this.resetInput();
93870
93860
  this.$emit('send', eventDetail);
93871
93861
  }
93872
93862
  shouldDisableSendButton() {
93873
93863
  return this.textArea.value.length === 0;
93874
93864
  }
93865
+ resetInput() {
93866
+ this.value = '';
93867
+ this.disableSendButton = true;
93868
+ if (this.textArea) {
93869
+ this.textArea.value = '';
93870
+ this.textArea.focus();
93871
+ }
93872
+ }
93875
93873
  }
93876
93874
  __decorate([
93877
93875
  attr