Skip to content

Commit

Permalink
fix handlers bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly D. Kravtsov authored Apr 18, 2017
1 parent 09472b8 commit e22c6cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ function setSelection(el, selection) {
}

class MaskedInput extends React.Component {
constructor(props) {
super(props)

this._onChange = this._onChange.bind(this)
this._onKeyDown = this._onKeyDown.bind(this)
this._onPaste = this._onPaste.bind(this)
this._onKeyPress = this._onKeyPress.bind(this)
}

componentWillMount() {
var options = {
pattern: this.props.mask,
Expand Down

0 comments on commit e22c6cf

Please sign in to comment.