Skip to content

Commit d0505ae

Browse files
committed
Fixed issue #23
1 parent 5658be6 commit d0505ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ class CurrencyInput extends Component {
171171
let selectionEnd = Math.min(node.selectionEnd, this.theInput.value.length - this.props.suffix.length);
172172
let selectionStart = Math.min(node.selectionStart, selectionEnd);
173173

174+
event.persist(); // fixes issue #23
175+
174176
this.setState({ maskedValue, value }, () => {
175177
this.props.onChange(maskedValue, value, event);
176178
});

0 commit comments

Comments
 (0)