@ni/ok-components 1.4.1 → 1.4.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/custom-elements.json +217 -217
- package/dist/custom-elements.md +56 -56
- package/package.json +2 -2
|
@@ -99698,7 +99698,7 @@ focus outline in that case.
|
|
|
99698
99698
|
*/
|
|
99699
99699
|
textAreaInputHandler() {
|
|
99700
99700
|
this.value = this.textArea.value;
|
|
99701
|
-
this.isInputEmpty = this.
|
|
99701
|
+
this.isInputEmpty = this.textArea.value.length === 0;
|
|
99702
99702
|
this.adjustTextAreaHeight();
|
|
99703
99703
|
this.queueUpdateScrollbarWidth();
|
|
99704
99704
|
}
|
|
@@ -99720,7 +99720,7 @@ focus outline in that case.
|
|
|
99720
99720
|
valueChanged() {
|
|
99721
99721
|
if (this.textArea) {
|
|
99722
99722
|
this.textArea.value = this.value;
|
|
99723
|
-
this.isInputEmpty = this.
|
|
99723
|
+
this.isInputEmpty = this.textArea.value.length === 0;
|
|
99724
99724
|
this.adjustTextAreaHeight();
|
|
99725
99725
|
this.queueUpdateScrollbarWidth();
|
|
99726
99726
|
}
|
|
@@ -99731,7 +99731,7 @@ focus outline in that case.
|
|
|
99731
99731
|
connectedCallback() {
|
|
99732
99732
|
super.connectedCallback();
|
|
99733
99733
|
this.textArea.value = this.value;
|
|
99734
|
-
this.isInputEmpty = this.
|
|
99734
|
+
this.isInputEmpty = this.textArea.value.length === 0;
|
|
99735
99735
|
this.adjustTextAreaHeight();
|
|
99736
99736
|
this.resizeObserver = new ResizeObserver(() => this.onResize());
|
|
99737
99737
|
this.resizeObserver.observe(this);
|
|
@@ -99767,7 +99767,7 @@ focus outline in that case.
|
|
|
99767
99767
|
this.textArea?.blur();
|
|
99768
99768
|
}
|
|
99769
99769
|
shouldDisableSendButton() {
|
|
99770
|
-
return this.textArea.value.length === 0;
|
|
99770
|
+
return this.sendDisabled || this.textArea.value.length === 0;
|
|
99771
99771
|
}
|
|
99772
99772
|
resetInput() {
|
|
99773
99773
|
this.value = '';
|