We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5658be6 commit d0505aeCopy full SHA for d0505ae
src/index.js
@@ -171,6 +171,8 @@ class CurrencyInput extends Component {
171
let selectionEnd = Math.min(node.selectionEnd, this.theInput.value.length - this.props.suffix.length);
172
let selectionStart = Math.min(node.selectionStart, selectionEnd);
173
174
+ event.persist(); // fixes issue #23
175
+
176
this.setState({ maskedValue, value }, () => {
177
this.props.onChange(maskedValue, value, event);
178
});
0 commit comments