From 3e7270ba8fb5efc004e4bbb8f4c7d68e59a90cda Mon Sep 17 00:00:00 2001 From: Greg Fodor <gfodor@gmail.com> Date: Sat, 27 Oct 2018 06:29:30 +0000 Subject: [PATCH] Fix pasting bug --- src/scene-entry-manager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scene-entry-manager.js b/src/scene-entry-manager.js index 6974195ca..76835383a 100644 --- a/src/scene-entry-manager.js +++ b/src/scene-entry-manager.js @@ -218,7 +218,8 @@ export default class SceneEntryManager { }); document.addEventListener("paste", e => { - if (e.target.nodeName === "INPUT" && document.activeElement === e.target) return; + if ((e.target.nodeName === "INPUT" || e.target.nodeName === "TEXTAREA") && document.activeElement === e.target) + return; const url = e.clipboardData.getData("text"); const files = e.clipboardData.files && e.clipboardData.files; -- GitLab