@undp/carbon-library 1.0.293-CARBON-367.0 → 1.0.293-CARBON-425.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/esm/index.js CHANGED
@@ -6829,7 +6829,9 @@ var AddNewCompanyComponent = function (props) {
6829
6829
  }); },
6830
6830
  },
6831
6831
  ] },
6832
- React.createElement(InputNumber, { style: { width: "100%" }, size: "large", min: 1, max: 99, formatter: function (value) { return "".concat(Math.round(value), "%"); }, parser: function (value) { return value.replace("%", ""); } })))))))),
6832
+ React.createElement(InputNumber, { style: { width: "100%" }, size: "large", min: 0, max: 99, formatter: function (value) {
6833
+ return "".concat(value ? Math.round(value) : "", "%");
6834
+ }, parser: function (value) { return value.replace("%", ""); } })))))))),
6833
6835
  React.createElement("div", { className: "steps-actions" }, isUpdate ? (React.createElement(Row, null,
6834
6836
  React.createElement(Button, { loading: loading, onClick: onCancel }, t("addCompany:cancel")),
6835
6837
  React.createElement(Button, { loading: loading, className: "mg-left-1", type: "primary", htmlType: "submit" }, t("addCompany:submit")))) : (current === 0 && (React.createElement(Button, { type: "primary", htmlType: "submit" }, t("addCompany:next")))))))));