@porscheinformatik/clr-addons 12.9.1 → 12.9.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.
@@ -4923,10 +4923,13 @@ class ClrDateFilterComponent {
4923
4923
  return this._from !== null || this._to !== null;
4924
4924
  }
4925
4925
  accepts(item) {
4926
- const propValue = this.nestedProp.getPropValue(item);
4926
+ let propValue = this.nestedProp ? this.nestedProp.getPropValue(item) : item;
4927
4927
  if (propValue === undefined) {
4928
4928
  return false;
4929
4929
  }
4930
+ if (typeof propValue === 'string') {
4931
+ propValue = new Date(propValue);
4932
+ }
4930
4933
  if (this._from !== null && (!(propValue instanceof Date) || propValue.getTime() < this._from.getTime())) {
4931
4934
  return false;
4932
4935
  }