don't import into textarea elements either - fix #579 (#598)

This commit is contained in:
Devin Howard 2016-08-11 01:14:33 +08:00 committed by Connor Turland
parent 9db5ce551e
commit 63b528c8bf

View file

@ -29,6 +29,7 @@ Metamaps.Import = {
$('body').bind('paste', function (e) { $('body').bind('paste', function (e) {
if (e.target.tagName === 'INPUT') return if (e.target.tagName === 'INPUT') return
if (e.target.tagName === 'TEXTAREA') return
var text = e.originalEvent.clipboardData.getData('text/plain') var text = e.originalEvent.clipboardData.getData('text/plain')