mirror of
https://github.com/penpot/penpot.git
synced 2025-01-25 07:58:49 -05:00
🐛 Fixes paste in workspace inputs
This commit is contained in:
parent
b616efd75c
commit
292faec46f
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue