From 63b528c8bf2a10c895fa0db6f1adb8190f02f2df Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Thu, 11 Aug 2016 01:14:33 +0800 Subject: [PATCH] don't import into textarea elements either - fix #579 (#598) --- app/assets/javascripts/src/Metamaps.Import.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/src/Metamaps.Import.js b/app/assets/javascripts/src/Metamaps.Import.js index 30770628..d7771988 100644 --- a/app/assets/javascripts/src/Metamaps.Import.js +++ b/app/assets/javascripts/src/Metamaps.Import.js @@ -29,6 +29,7 @@ Metamaps.Import = { $('body').bind('paste', function (e) { if (e.target.tagName === 'INPUT') return + if (e.target.tagName === 'TEXTAREA') return var text = e.originalEvent.clipboardData.getData('text/plain')