px-react-ui-components 1.0.25 → 1.0.27

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.
@@ -246,6 +246,9 @@ function MyInput({
246
246
  typingTimeoutRef.current = setTimeout(() => {
247
247
  setIsTyping(false);
248
248
  if (onChange) {
249
+ if (type === MyInputType.MONEY && newValue) {
250
+ newValue = parseFloat(newValue.replace(/,/g, '')).toFixed(decimalCount);
251
+ }
249
252
  onChange({
250
253
  value: newValue,
251
254
  target: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "px-react-ui-components",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "commonjs",