From 31ab97772c0b2a1bcbebac5f6c327b43775f3200 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 29 Jul 2019 22:27:31 +0100 Subject: [PATCH] Match code-style better Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/dialogs/AddressPickerDialog.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/views/dialogs/AddressPickerDialog.js b/src/components/views/dialogs/AddressPickerDialog.js index 63964a6ad6..5c004deebd 100644 --- a/src/components/views/dialogs/AddressPickerDialog.js +++ b/src/components/views/dialogs/AddressPickerDialog.js @@ -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() {