Skip to content

Commit a5d3b5d

Browse files
committed
Minor: fixed bug where pressing enter in the currency pair input would fire the change event twice, once for the enter and once for the blur that happens straight afterwards
1 parent 73ba72e commit a5d3b5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/script/currency-pair-input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var CurrencyPairInput = React.createClass({
1515
componentDidMount() {
1616
this.getCurrencyPairInputElement().on("keyup", function(event) {
1717
if(event.keyCode === 13) {
18-
this.onCurrencyPairChanged(event);
18+
this.getCurrencyPairInputElement().blur();
1919
}
2020
}.bind(this));
2121
},

0 commit comments

Comments
 (0)