Skip to content

Commit 2910b57

Browse files
committed
- Add documentation link on package.json #810
1 parent 69ad995 commit 2910b57

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-number-format",
33
"description": "React component to format number in an input or as a text.",
4-
"version": "5.3.2",
4+
"version": "5.3.3",
55
"main": "dist/react-number-format.cjs.js",
66
"module": "dist/react-number-format.es.js",
77
"types": "types/index.d.ts",
@@ -12,6 +12,7 @@
1212
"type": "git",
1313
"url": "https://github.com/s-yadav/react-number-format"
1414
},
15+
"homepage": "https://s-yadav.github.io/react-number-format/docs/intro",
1516
"bugs": {
1617
"mail": "[email protected]",
1718
"url": "https://github.com/s-yadav/react-number-format/issues"

src/number_format_base.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,7 @@ export default function NumberFormatBase<BaseType = InputAttributes>(
156156
| React.KeyboardEvent<HTMLInputElement>;
157157
source: SourceType;
158158
}) => {
159-
const {
160-
formattedValue: newFormattedValue = '',
161-
input,
162-
source,
163-
event,
164-
numAsString,
165-
} = params;
159+
const { formattedValue: newFormattedValue = '', input, source, event, numAsString } = params;
166160
let caretPos;
167161

168162
if (input) {

0 commit comments

Comments
 (0)