@codetectonics/mantle 1.2.0 → 1.2.1

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.
@@ -2286,13 +2286,13 @@ class NumberInputComponent {
2286
2286
  return null;
2287
2287
  }
2288
2288
  const errors = {};
2289
- if (this.options.min !== undefined && val < this.options.min) {
2289
+ if (this.options?.min !== undefined && val < this.options.min) {
2290
2290
  errors.min = `must be greater than or equal to ${this.options.min}`;
2291
2291
  }
2292
- if (this.options.max !== undefined && val > this.options.max) {
2292
+ if (this.options?.max !== undefined && val > this.options.max) {
2293
2293
  errors.max = `must be lower than or equal to ${this.options.max}`;
2294
2294
  }
2295
- if (this.options.decimal_places !== undefined) {
2295
+ if (this.options?.decimal_places !== undefined) {
2296
2296
  const factor = Math.pow(10, this.options.decimal_places);
2297
2297
  if (Math.round(val * factor) / factor !== val) {
2298
2298
  errors.decimal_places =