Skip to content

Commit

Permalink
Fix older default props method
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanblakeley committed Aug 19, 2017
1 parent 71c6a36 commit bc57d6b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/FormsyText.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ const FormsyText = createClass({

mixins: [Formsy.Mixin],

defaultProps: {
underlineFocusStyle: {},
underlineStyle: {},
validationColor: '#4CAF50',
getDefaultProps() {
return {
underlineFocusStyle: {},
underlineStyle: {},
validationColor: '#4CAF50',
};
},

getInitialState() {
Expand Down

0 comments on commit bc57d6b

Please sign in to comment.