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.
@@ -2532,8 +2532,10 @@ class CpsAutocompleteComponent {
2532
2532
  onBoxClick() {
2533
2533
  if (!this.multiple) {
2534
2534
  this.activeSingle = true;
2535
- this.inputText = this._getValueLabel();
2536
- this.filteredOptions = this.options;
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 = this._getValueLabel();
2941
- this.treeList.resetFilter();
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;