@douyinfe/semi-ui 2.45.0 → 2.45.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.
@@ -65499,7 +65499,7 @@ class InputNumber extends BaseComponent {
65499
65499
  * We need to set the status to false after trigger focus event
65500
65500
  */
65501
65501
  if (this.clickUpOrDown) {
65502
- obj.value = this.foundation.doFormat(valueStr, true);
65502
+ obj.value = this.foundation.doFormat(obj.number, true);
65503
65503
  newValue = obj.value;
65504
65504
  }
65505
65505
  this.foundation.updateStates(obj, () => this.adapter.restoreCursor());
@@ -65511,9 +65511,8 @@ class InputNumber extends BaseComponent {
65511
65511
  });
65512
65512
  } else {
65513
65513
  // Update input content when controlled input NaN
65514
- newValue = this.foundation.doFormat(valueStr, false);
65515
65514
  this.foundation.updateStates({
65516
- value: newValue
65515
+ value: valueStr
65517
65516
  });
65518
65517
  }
65519
65518
  } else if (this.foundation.isValidNumber(parsedNum)) {