monkey-front-components 0.0.786 → 0.0.787

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.
@@ -2084,14 +2084,19 @@ class MECXFilterOptionsValueRangeComponent extends BaseComponent {
2084
2084
  }
2085
2085
  const { value } = _form;
2086
2086
  let { max, min } = value;
2087
- if (!!min && !!max && min > max) {
2088
- this.__monkeyecxFormErrors = {
2089
- min: {
2090
- firstMessage: 'ERRORS.MIN-GREATHER-THAN-MAX',
2091
- lastMessage: ''
2092
- }
2093
- };
2094
- return;
2087
+ try {
2088
+ if (!!min && !!max && Number(min) > Number(max)) {
2089
+ this.__monkeyecxFormErrors = {
2090
+ min: {
2091
+ firstMessage: 'ERRORS.MIN-GREATHER-THAN-MAX',
2092
+ lastMessage: ''
2093
+ }
2094
+ };
2095
+ return;
2096
+ }
2097
+ }
2098
+ catch (e) {
2099
+ // not to do
2095
2100
  }
2096
2101
  const handleValidators = (param) => {
2097
2102
  const found = this.option.validators.find(({ name }) => {