Merge pull request #3735 from matrix-org/t3chguy/address_picker_dialog_tab_trap

Stop trapping tab in AddressPickerDialog
pull/21833/head
Michael Telatynski 2019-12-17 10:07:12 +00:00 committed by GitHub
commit 0140338ac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ module.exports = createReactClass({
} else { } else {
this._addAddressesToList([textInput]); 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.stopPropagation();
e.preventDefault(); e.preventDefault();
this._addAddressesToList([textInput]); this._addAddressesToList([textInput]);