Skip to content

Commit e22c6cf

Browse files
author
Vitaly D. Kravtsov
authored
fix handlers bindings
1 parent 09472b8 commit e22c6cf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ function setSelection(el, selection) {
5959
}
6060

6161
class MaskedInput extends React.Component {
62+
constructor(props) {
63+
super(props)
64+
65+
this._onChange = this._onChange.bind(this)
66+
this._onKeyDown = this._onKeyDown.bind(this)
67+
this._onPaste = this._onPaste.bind(this)
68+
this._onKeyPress = this._onKeyPress.bind(this)
69+
}
70+
6271
componentWillMount() {
6372
var options = {
6473
pattern: this.props.mask,

0 commit comments

Comments
 (0)