Match code-style better
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
a97e2e6ef2
commit
31ab97772c
1 changed files with 4 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue