@ni/spright-components 6.20.1 → 6.20.3
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.
- package/dist/all-components-bundle.js +4 -4
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +2 -2
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/chat/input/index.js +4 -4
- package/dist/esm/chat/input/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -99690,7 +99690,7 @@ focus outline in that case.
|
|
|
99690
99690
|
*/
|
|
99691
99691
|
textAreaInputHandler() {
|
|
99692
99692
|
this.value = this.textArea.value;
|
|
99693
|
-
this.isInputEmpty = this.
|
|
99693
|
+
this.isInputEmpty = this.textArea.value.length === 0;
|
|
99694
99694
|
this.adjustTextAreaHeight();
|
|
99695
99695
|
this.queueUpdateScrollbarWidth();
|
|
99696
99696
|
}
|
|
@@ -99712,7 +99712,7 @@ focus outline in that case.
|
|
|
99712
99712
|
valueChanged() {
|
|
99713
99713
|
if (this.textArea) {
|
|
99714
99714
|
this.textArea.value = this.value;
|
|
99715
|
-
this.isInputEmpty = this.
|
|
99715
|
+
this.isInputEmpty = this.textArea.value.length === 0;
|
|
99716
99716
|
this.adjustTextAreaHeight();
|
|
99717
99717
|
this.queueUpdateScrollbarWidth();
|
|
99718
99718
|
}
|
|
@@ -99723,7 +99723,7 @@ focus outline in that case.
|
|
|
99723
99723
|
connectedCallback() {
|
|
99724
99724
|
super.connectedCallback();
|
|
99725
99725
|
this.textArea.value = this.value;
|
|
99726
|
-
this.isInputEmpty = this.
|
|
99726
|
+
this.isInputEmpty = this.textArea.value.length === 0;
|
|
99727
99727
|
this.adjustTextAreaHeight();
|
|
99728
99728
|
this.resizeObserver = new ResizeObserver(() => this.onResize());
|
|
99729
99729
|
this.resizeObserver.observe(this);
|
|
@@ -99759,7 +99759,7 @@ focus outline in that case.
|
|
|
99759
99759
|
this.textArea?.blur();
|
|
99760
99760
|
}
|
|
99761
99761
|
shouldDisableSendButton() {
|
|
99762
|
-
return this.textArea.value.length === 0;
|
|
99762
|
+
return this.sendDisabled || this.textArea.value.length === 0;
|
|
99763
99763
|
}
|
|
99764
99764
|
resetInput() {
|
|
99765
99765
|
this.value = '';
|