@magic-xpa/gui 4.1101.1 → 4.1101.2

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.
@@ -760,6 +760,9 @@ class GuiMgControl extends ControlBase {
760
760
  isListBox() {
761
761
  return this._type === MgControlType.CTRL_TYPE_LIST;
762
762
  }
763
+ IsMultipleSelectionListBox() {
764
+ return this.isListBox();
765
+ }
763
766
  isButton() {
764
767
  return this._type === MgControlType.CTRL_TYPE_BUTTON;
765
768
  }
@@ -1268,7 +1271,7 @@ class Commands {
1268
1271
  guiCommand.value = value;
1269
1272
  guiCommand.line = line;
1270
1273
  if (commandType === CommandType.SET_VALUE) {
1271
- if (obj instanceof GuiMgControl && obj.isChoiceControl()) {
1274
+ if (obj instanceof GuiMgControl && obj.isChoiceControl() && !obj.IsMultipleSelectionListBox()) {
1272
1275
  if (value < 0)
1273
1276
  if (obj.isComboBox())
1274
1277
  guiCommand.value = undefined;
@@ -12140,9 +12143,6 @@ class MgControlBase extends GuiControlPropertyAdapter {
12140
12143
  }
12141
12144
  return selectedIndice;
12142
12145
  }
12143
- IsMultipleSelectionListBox() {
12144
- return super.isListBox();
12145
- }
12146
12146
  IsDateTimePicture() {
12147
12147
  return this._pic.getAttr() === StorageAttribute.DATE || this._pic.getAttr() === StorageAttribute.TIME;
12148
12148
  }