Skip to content

Commit b2e503f

Browse files
authored
delete counter from props
fixed error needed to remove the counter props from beeing populated
1 parent 6c2a865 commit b2e503f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/react-inline-css.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var InlineCss = createReactClass({
3434
},
3535
render: function () {
3636
if(this.props.counter){
37-
refCounter = this.props.counter;
37+
refCounter = parseInt(this.props.counter);
3838
}
3939
var namespace = this.props.namespace || "InlineCss-" + refCounter++;
4040
var componentName = this.props.componentName || "&";
@@ -49,6 +49,7 @@ var InlineCss = createReactClass({
4949
delete wrapperProps.componentName;
5050
delete wrapperProps.stylesheet;
5151
delete wrapperProps.wrapper;
52+
delete wrapperProps.counter;
5253

5354
return React.createElement(
5455
Wrapper,

0 commit comments

Comments
 (0)