shineout 1.12.13-beta.8 → 1.12.13

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.
@@ -221,7 +221,7 @@ function (_PureComponent) {
221
221
  if (!shouldKeepUndefined && !this.invalidNumber(newVal)) {
222
222
  if (this.getTrim()) newVal = newVal.trim();
223
223
  var change = forceChange || onChange;
224
- change(newVal);
224
+ if (!this.props.cancelBlurChange) change(newVal);
225
225
  e.target.value = newVal;
226
226
  }
227
227
 
@@ -336,7 +336,8 @@ Input.propTypes = {
336
336
  clearToUndefined: _propTypes.default.bool,
337
337
  placeholder: _propTypes.default.string,
338
338
  coin: _propTypes.default.bool,
339
- trim: _propTypes.default.bool
339
+ trim: _propTypes.default.bool,
340
+ cancelBlurChange: _propTypes.default.bool
340
341
  };
341
342
  Input.defaultProps = {
342
343
  type: 'text'
@@ -231,6 +231,7 @@ function (_PureComponent) {
231
231
  onKeyDown: this.handleKeyDown,
232
232
  onKeyUp: this.handleKeyUp,
233
233
  onBlur: this.handleBlur,
234
+ cancelBlurChange: true,
234
235
  type: "number"
235
236
  }))]);
236
237
  };
@@ -255,6 +256,7 @@ function (_PureComponent) {
255
256
  onKeyDown: this.handleKeyDown,
256
257
  onKeyUp: this.handleKeyUp,
257
258
  onBlur: this.handleBlur,
259
+ cancelBlurChange: true,
258
260
  type: "number"
259
261
  }))].concat(this.renderArrowGroup());
260
262
  };
@@ -46,8 +46,8 @@ function (_PureComponent) {
46
46
  defaultOrder = _this$props.defaultOrder,
47
47
  current = _this$props.current,
48
48
  keyStr = _this$props.keyStr;
49
- if (current.length !== 1) return;
50
- var item = current[0];
49
+ if (current.length > 1) return;
50
+ var item = current[0] || {};
51
51
  var changed = keyStr === item.key && defaultOrder === item.order;
52
52
  if (defaultOrder && !changed && !item.manual) this.handleChange(defaultOrder, false);
53
53
  };
package/css/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import * as utils from './utils'
3
3
 
4
4
  declare const __default: {
5
5
  utils: typeof utils,
6
- version: '1.12.13-beta.8'
6
+ version: '1.12.13'
7
7
  }
8
8
 
9
9
  export default __default
package/css/index.js CHANGED
@@ -224,6 +224,6 @@ exports.Upload = _Upload.default;
224
224
  // Created by scripts/src-index.js.
225
225
  var _default = {
226
226
  utils: utils,
227
- version: '1.12.13-beta.8'
227
+ version: '1.12.13'
228
228
  };
229
229
  exports.default = _default;