cps-ui-kit 0.93.0 → 0.94.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.
- package/esm2020/lib/components/cps-autocomplete/cps-autocomplete.component.mjs +5 -3
- package/esm2020/lib/components/cps-tree-autocomplete/cps-tree-autocomplete.component.mjs +5 -3
- package/fesm2015/cps-ui-kit.mjs +8 -4
- package/fesm2015/cps-ui-kit.mjs.map +1 -1
- package/fesm2020/cps-ui-kit.mjs +8 -4
- package/fesm2020/cps-ui-kit.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/cps-ui-kit.mjs
CHANGED
|
@@ -2532,8 +2532,10 @@ class CpsAutocompleteComponent {
|
|
|
2532
2532
|
onBoxClick() {
|
|
2533
2533
|
if (!this.multiple) {
|
|
2534
2534
|
this.activeSingle = true;
|
|
2535
|
-
this.inputText
|
|
2536
|
-
|
|
2535
|
+
if (!this.inputText)
|
|
2536
|
+
this.inputText = this._getValueLabel();
|
|
2537
|
+
if (!this.isOpened)
|
|
2538
|
+
this.filteredOptions = this.options;
|
|
2537
2539
|
}
|
|
2538
2540
|
this.focus();
|
|
2539
2541
|
this._dehighlightOption();
|
|
@@ -2937,8 +2939,10 @@ class CpsTreeAutocompleteComponent extends BaseTreeDropdownComponent {
|
|
|
2937
2939
|
onBoxClick() {
|
|
2938
2940
|
if (!this.multiple) {
|
|
2939
2941
|
this.activeSingle = true;
|
|
2940
|
-
this.inputText
|
|
2941
|
-
|
|
2942
|
+
if (!this.inputText)
|
|
2943
|
+
this.inputText = this._getValueLabel();
|
|
2944
|
+
if (!this.isOpened)
|
|
2945
|
+
this.treeList.resetFilter();
|
|
2942
2946
|
}
|
|
2943
2947
|
this.focus();
|
|
2944
2948
|
this.optionFocused = false;
|