@zat-design/sisyphus-react 3.6.4-beta.7 → 3.6.4-beta.8

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.
@@ -234,21 +234,15 @@ var InputNumber = function InputNumber(props) {
234
234
  var handleBlur = function handleBlur(e) {
235
235
  var _e$target, _e$target2;
236
236
  activateRef.current = false;
237
- var changed = false;
238
237
  var value = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
239
238
  if (_max !== undefined && value > _max) {
240
239
  value = _max;
241
- changed = true;
242
240
  }
243
241
  if (_min !== undefined && value < _min) {
244
242
  value = _min;
245
- changed = true;
246
243
  }
247
244
  value = _parser(String(value), props.precision);
248
- if (changed) {
249
- rest === null || rest === void 0 ? void 0 : rest.onChange(value);
250
- changed = null;
251
- }
245
+ rest === null || rest === void 0 ? void 0 : rest.onChange(value);
252
246
  var limit = {
253
247
  min: Number(_min),
254
248
  max: Number(_max)
@@ -238,21 +238,15 @@ var InputNumber = function InputNumber(props) {
238
238
  var handleBlur = function handleBlur(e) {
239
239
  var _e$target, _e$target2;
240
240
  activateRef.current = false;
241
- var changed = false;
242
241
  var value = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
243
242
  if (_max !== undefined && value > _max) {
244
243
  value = _max;
245
- changed = true;
246
244
  }
247
245
  if (_min !== undefined && value < _min) {
248
246
  value = _min;
249
- changed = true;
250
247
  }
251
248
  value = _parser(String(value), props.precision);
252
- if (changed) {
253
- rest === null || rest === void 0 ? void 0 : rest.onChange(value);
254
- changed = null;
255
- }
249
+ rest === null || rest === void 0 ? void 0 : rest.onChange(value);
256
250
  var limit = {
257
251
  min: Number(_min),
258
252
  max: Number(_max)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.6.4-beta.7",
3
+ "version": "3.6.4-beta.8",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",