chrv-components 1.10.23 → 1.10.24
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.
|
@@ -1161,7 +1161,7 @@ class ChrSearchSelectComponent extends ChrBaseInputComponent {
|
|
|
1161
1161
|
this.overrideShowResults = false;
|
|
1162
1162
|
};
|
|
1163
1163
|
this.addFromText = (event) => {
|
|
1164
|
-
if (this.acceptText && this.value
|
|
1164
|
+
if (this.acceptText && this.value?.trim()) {
|
|
1165
1165
|
const value = this.addCallback
|
|
1166
1166
|
? this.addCallback(this.value, this.addSubject)
|
|
1167
1167
|
: this.value;
|
|
@@ -1302,7 +1302,7 @@ class ChrTagSelectComponent extends ChrBaseInputComponent {
|
|
|
1302
1302
|
return this.display ? this.display?.(model) : model;
|
|
1303
1303
|
};
|
|
1304
1304
|
this.addFromText = (event) => {
|
|
1305
|
-
if (this.acceptText && this.textInputValue
|
|
1305
|
+
if (this.acceptText && this.textInputValue?.trim()) {
|
|
1306
1306
|
const value = this.addCallback
|
|
1307
1307
|
? this.addCallback(this.textInputValue, this.addSubject)
|
|
1308
1308
|
: this.textInputValue;
|