@woosmap/ui 4.100.4 → 4.100.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.100.4",
3
+ "version": "4.100.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -43,7 +43,7 @@ export default class Input extends Component {
43
43
  const { onChange, value: oldValue, name, step, min } = this.props;
44
44
  const { value: stateValue } = this.state;
45
45
  const theValue = oldValue || stateValue;
46
- const newValue = Math.min(min, theValue ? theValue - step : 0);
46
+ const newValue = Math.max(min, theValue ? theValue - step : 0);
47
47
  if (onChange) {
48
48
  onChange({ target: { name, value: newValue } });
49
49
  } else {
@@ -249,6 +249,6 @@ Input.defaultProps = {
249
249
  isInputIconFill: false,
250
250
  step: 1,
251
251
  testId: 'input',
252
- min: undefined,
253
- max: undefined,
252
+ min: null,
253
+ max: null,
254
254
  };