From 292faec46f91ac65ffd70f3afeae874cb1d01992 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 13 Jan 2021 15:04:34 +0100 Subject: [PATCH] :bug: Fixes paste in workspace inputs --- frontend/src/app/main/ui/workspace/viewport.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/viewport.cljs b/frontend/src/app/main/ui/workspace/viewport.cljs index a0c70c56a..ff7ecc093 100644 --- a/frontend/src/app/main/ui/workspace/viewport.cljs +++ b/frontend/src/app/main/ui/workspace/viewport.cljs @@ -544,8 +544,9 @@ (fn [event] ;; We disable the paste just after mouse-up of a middle button so when panning won't ;; paste the content into the workspace - (when (not @disable-paste) - (st/emit! (dw/paste-from-event event))))) + (let [tag-name (-> event dom/get-target dom/get-tag-name)] + (when (and (not (#{"INPUT" "TEXTAREA"} tag-name)) (not @disable-paste)) + (st/emit! (dw/paste-from-event event)))))) on-resize (mf/use-callback