diff --git a/src/components/inputtext/InputText.js b/src/components/inputtext/InputText.js index 0e1dfb95be..8298e53d39 100644 --- a/src/components/inputtext/InputText.js +++ b/src/components/inputtext/InputText.js @@ -8,13 +8,13 @@ export class InputText extends Component { static defaultProps = { onInput: null, onKeyPress: null, - keyFilter: null + keyfilter: null }; static propTypes = { onInput: PropTypes.func, onKeyPress: PropTypes.func, - keyFilter: PropTypes.any + keyfilter: PropTypes.any }; constructor(props) { @@ -28,8 +28,8 @@ export class InputText extends Component { this.props.onKeyPress(event); } - if (this.props.keyFilter) { - KeyFilter.onKeyPress(event, this.props.keyFilter) + if (this.props.keyfilter) { + KeyFilter.onKeyPress(event, this.props.keyfilter) } } diff --git a/src/showcase/keyfilter/KeyFilterDemo.js b/src/showcase/keyfilter/KeyFilterDemo.js index 065c2034d9..1abf6efc17 100644 --- a/src/showcase/keyfilter/KeyFilterDemo.js +++ b/src/showcase/keyfilter/KeyFilterDemo.js @@ -19,28 +19,28 @@ export class KeyFilterDemo extends Component {