@acorex/platform 20.8.1 → 20.8.4

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.
@@ -6875,35 +6875,36 @@ class AXPSelectBoxWidgetEditComponent extends AXPDataListWidgetComponent {
6875
6875
  this.contextService.patch(itemToExpose, true);
6876
6876
  }
6877
6877
  //#endregion
6878
- //#region ---- Set Value Based on Mode ----
6879
- if (this.filterMode()) {
6880
- // Filter mode: set value with operation structure
6881
- const newValue = e.value;
6882
- const text = this.selectedItems().map((item) => get(item, this.textField()));
6883
- this.setValue({
6884
- value: newValue,
6885
- displayText: text,
6886
- operation: {
6887
- type: this.multiple() ? 'in' : 'equal',
6888
- },
6889
- });
6878
+ }
6879
+ //#region ---- Set Value Based on Mode ----
6880
+ // Apply strategy even when the value comes from outside (isUserInteraction=false).
6881
+ if (this.filterMode()) {
6882
+ // Filter mode: set value with operation structure
6883
+ const newValue = e.value;
6884
+ const text = this.selectedItems().map((item) => get(item, this.textField()));
6885
+ this.setValue({
6886
+ value: newValue,
6887
+ displayText: text,
6888
+ operation: {
6889
+ type: this.multiple() ? 'in' : 'equal',
6890
+ },
6891
+ });
6892
+ }
6893
+ else {
6894
+ // Normal mode: set value directly
6895
+ if (this.widgetsConfigs.selectValueStrategy === 'valueField') {
6896
+ this.setValue(e.value);
6890
6897
  }
6891
6898
  else {
6892
- // Normal mode: set value directly
6893
- if (this.widgetsConfigs.selectValueStrategy === 'valueField') {
6894
- this.setValue(e.value);
6899
+ if (this.multiple()) {
6900
+ this.setValue(this.selectedItems());
6895
6901
  }
6896
6902
  else {
6897
- if (this.multiple()) {
6898
- this.setValue(this.selectedItems());
6899
- }
6900
- else {
6901
- this.setValue(this.selectedItems()[0]);
6902
- }
6903
+ this.setValue(this.selectedItems()[0]);
6903
6904
  }
6904
6905
  }
6905
- //#endregion
6906
6906
  }
6907
+ //#endregion
6907
6908
  }
6908
6909
  handleSearchValueChange(e) {
6909
6910
  if (e.isUserInteraction) {