post-merge fix

pull/21833/head
Michael Telatynski 2019-12-17 09:58:04 +00:00
parent d7a411f588
commit 17463c401f
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ module.exports = createReactClass({
} else {
this._addAddressesToList([textInput]);
}
} else if (e.key === Key.COMMA || e.key === Key.TAB) {
} else if (textInput && (e.key === Key.COMMA || e.key === Key.TAB)) {
e.stopPropagation();
e.preventDefault();
this._addAddressesToList([textInput]);