@datorama/core 22.12.3 → 22.12.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.
@@ -13221,10 +13221,12 @@ var DatoGridFilterComponent = /** @class */ (function () {
13221
13221
  DatoGridFilterComponent.prototype.updateDateInput = function (_a) {
13222
13222
  var inRange = _a.inRange, index = _a.index;
13223
13223
  var control = this.conditions.at(index).get('value');
13224
- if (control.dirty) {
13225
- var value = control.value;
13226
- var newValue = inRange ? { from: value, to: value } : value.from;
13227
- control.patchValue(newValue);
13224
+ var value = control.value;
13225
+ if (inRange && typeof value === 'string') {
13226
+ control.patchValue({ from: value, to: value, id: 'CUSTOM' });
13227
+ }
13228
+ else if (!inRange && value && typeof value === 'object') {
13229
+ control.patchValue(value.from);
13228
13230
  }
13229
13231
  };
13230
13232
  DatoGridFilterComponent.prototype.updateNumberInput = function (_a) {
@@ -25483,7 +25485,7 @@ function fixNgLeaks() {
25483
25485
  };
25484
25486
  }
25485
25487
 
25486
- window.coreVersion = '22.12.3';
25488
+ window.coreVersion = '22.12.4';
25487
25489
 
25488
25490
  /**
25489
25491
  * @license