Skip to content

Commit

Permalink
Fix wrong scope in paste event (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
jCobbSK authored and iamdustan committed Oct 20, 2017
1 parent 0efd702 commit 9865ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class MaskedInput extends React.Component {
if (this.mask.paste(e.clipboardData.getData('Text'))) {
e.target.value = this.mask.getValue()
// Timeout needed for IE
setTimeout(this._updateInputSelection, 0)
setTimeout(this._updateInputSelection.bind(this), 0)
if (this.props.onChange) {
this.props.onChange(e)
}
Expand Down

0 comments on commit 9865ec5

Please sign in to comment.