bromcom-ui 2.4.11 → 2.4.14

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.
@@ -11018,14 +11018,19 @@ const BcmSelect = class {
11018
11018
  this.captionTypeCache = this.captionType;
11019
11019
  }
11020
11020
  handleChange(newValue, oldValue) {
11021
- if (oldValue != newValue) {
11021
+ const newVal = newValue ? newValue : null;
11022
+ const oldVal = oldValue ? oldValue : null;
11023
+ if (oldVal != newVal) {
11022
11024
  if (this.checkboxes == true) {
11023
- this.change.emit(newValue);
11025
+ this.change.emit(newVal);
11024
11026
  }
11025
11027
  else {
11026
- if (!oldValue || (newValue[this.objectMapping['id']] != oldValue[this.objectMapping['id']])) {
11028
+ if (!oldVal || (newVal && (newVal[this.objectMapping['id']] != oldVal[this.objectMapping['id']]))) {
11027
11029
  // await delay(10)
11028
- this.change.emit(newValue);
11030
+ this.change.emit(newVal);
11031
+ }
11032
+ if (!newVal) {
11033
+ this.change.emit(newVal);
11029
11034
  }
11030
11035
  }
11031
11036
  }