You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-24 06:02:08 +03:00
Match code-style better
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@ -548,9 +548,11 @@ module.exports = React.createClass({
|
||||
},
|
||||
|
||||
_onPaste: function(e) {
|
||||
const text = e.clipboardData.getData("text");
|
||||
this._addAddressesToList(text.split(/[\s,]+/));
|
||||
// Prevent the text being pasted into the textarea
|
||||
e.preventDefault();
|
||||
const text = e.clipboardData.getData("text");
|
||||
// Process it as a list of addresses to add instead
|
||||
this._addAddressesToList(text.split(/[\s,]+/));
|
||||
},
|
||||
|
||||
render: function() {
|
||||
|
Reference in New Issue
Block a user