Remove duplicate case handled above
And fix typo where it was handled
This commit is contained in:
parent
2a08abaa95
commit
ee1f6c772e
1 changed files with 1 additions and 3 deletions
|
@ -124,7 +124,7 @@ module.exports = React.createClass({
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
this.addressSelector.moveSelectionDown();
|
this.addressSelector.moveSelectionDown();
|
||||||
} else if (this.state.queryList.length > 0 && (e.keyCode === 188, e.keyCode === 13 || e.keyCode === 9)) { // comma or enter or tab
|
} else if (this.state.queryList.length > 0 && (e.keyCode === 188 || e.keyCode === 13 || e.keyCode === 9)) { // comma or enter or tab
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
this.addressSelector.chooseSelection();
|
this.addressSelector.chooseSelection();
|
||||||
|
@ -138,8 +138,6 @@ module.exports = React.createClass({
|
||||||
if (this.refs.textinput.value == '') {
|
if (this.refs.textinput.value == '') {
|
||||||
// if there's nothing in the input box, submit the form
|
// if there's nothing in the input box, submit the form
|
||||||
this.onButtonClick();
|
this.onButtonClick();
|
||||||
} else if (this.state.queryList.length > 0) {
|
|
||||||
this.addressSelector.chooseSelection();
|
|
||||||
} else {
|
} else {
|
||||||
const addrType = Invite.getAddressType(this.refs.textinput.value);
|
const addrType = Invite.getAddressType(this.refs.textinput.value);
|
||||||
if (addrType !== null) {
|
if (addrType !== null) {
|
||||||
|
|
Loading…
Reference in a new issue