From 87a517a169f54c834a95d14ec2c9879c8e12b46f Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Tue, 29 Jan 2019 12:43:09 -0800 Subject: [PATCH] exclude text inputs from paste handler --- app/pasteManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/pasteManager.js b/app/pasteManager.js index cdde7a81..350b6a33 100644 --- a/app/pasteManager.js +++ b/app/pasteManager.js @@ -7,7 +7,7 @@ function getString(item) { export default function(state, emitter) { window.addEventListener('paste', async event => { if (state.route !== '/' || state.uploading) return; - if (event.target.type === 'password') return; + if (['password', 'text'].includes(event.target.type)) return; const items = Array.from(event.clipboardData.items); const transferFiles = items.filter(item => item.kind === 'file');