Skip to content

Commit 9865ec5

Browse files
jCobbSKiamdustan
authored andcommitted
Fix wrong scope in paste event (#108)
1 parent 0efd702 commit 9865ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class MaskedInput extends React.Component {
220220
if (this.mask.paste(e.clipboardData.getData('Text'))) {
221221
e.target.value = this.mask.getValue()
222222
// Timeout needed for IE
223-
setTimeout(this._updateInputSelection, 0)
223+
setTimeout(this._updateInputSelection.bind(this), 0)
224224
if (this.props.onChange) {
225225
this.props.onChange(e)
226226
}

0 commit comments

Comments
 (0)