Skip to content

Commit de157e4

Browse files
committed
Fixed "Unknown prop 'suffix' on <input> tag. Remove this prop from the element" error.
1 parent e3c223d commit de157e4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-currency-input",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"description": "React component for inputing currency amounts",
55
"main": "lib/index.js",
66
"scripts": {

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ const CurrencyInput = React.createClass({
9898
delete customProps.precision;
9999
delete customProps.inputType;
100100
delete customProps.allowNegative;
101+
delete customProps.prefix;
102+
delete customProps.suffix;
101103
this.setState({
102104
maskedValue: mask(
103105
nextProps.value,

0 commit comments

Comments
 (0)