@colijnit/corecomponents_v12 261.20.10 → 261.20.12

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.
@@ -7823,7 +7823,11 @@ class InputTextComponent extends BaseInputComponent {
7823
7823
  event.preventDefault();
7824
7824
  }
7825
7825
  }
7826
- if (this.type === 'number' && this.model?.length === this.maxLength && /^\d$/.test(key)) {
7826
+ const value = String(this.model ?? "");
7827
+ if (this.type === "number" &&
7828
+ this.maxLength > 0 &&
7829
+ value.length >= this.maxLength &&
7830
+ /^\d$/.test(key)) {
7827
7831
  event.preventDefault();
7828
7832
  }
7829
7833
  }
@@ -16419,6 +16423,7 @@ class FilterItemComponent {
16419
16423
  this.mode === this.modes.Slider;
16420
16424
  const canApplyDefaults = (modeWithoutCollection || (!modeWithoutCollection && this.collection && this.collection.length > 0)) &&
16421
16425
  this.defaultValue &&
16426
+ !this.hidden &&
16422
16427
  !(this._model?.length || this._model > 0);
16423
16428
  if (!canApplyDefaults) {
16424
16429
  return;