1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

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

Stop trapping tab in AddressPickerDialog
This commit is contained in:
Michael Telatynski
2019-12-17 10:07:12 +00:00
committed by GitHub

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]);