@momo-kits/stepper 0.0.19-beta-1 → 0.0.19-beta-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.
Files changed (2) hide show
  1. package/Stepper.js +1 -1
  2. package/package.json +1 -1
package/Stepper.js CHANGED
@@ -198,7 +198,7 @@ export default class Quantity extends Component {
198
198
  const {isChangeValue, onConditionCheck} = this.props;
199
199
  const {value} = this.state;
200
200
  const type = isIncrease ? 'increase' : 'decrease';
201
- if (isChangeValue) {
201
+ if (isChangeValue && value !== '') {
202
202
  const newValue = isIncrease
203
203
  ? parseInt(value) + this.getValue('increase', step)
204
204
  : parseInt(value) - this.getValue('decrease', step);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/stepper",
3
- "version": "0.0.19-beta-1",
3
+ "version": "0.0.19-beta-2",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "dependencies": {},