mirror of
https://github.com/penpot/penpot.git
synced 2025-07-27 05:08:07 +02:00
🐛 Fix unexpected console errors on removing shape.
Caused because in some instances selected shapes set will contain an id that is already removed from object. This is a tipical race condition.
This commit is contained in:
parent
239ec12529
commit
94ccc013d7
4 changed files with 15 additions and 11 deletions
|
@ -90,9 +90,7 @@
|
|||
(let [target (.-target ^js event)]
|
||||
(when (and (not (.-isContentEditable target)) ;; ignore when pasting into
|
||||
(not= (.-tagName target) "INPUT")) ;; an editable control
|
||||
(-> ^js event
|
||||
(.getBrowserEvent)
|
||||
(.-clipboardData)))))
|
||||
(.. ^js event getBrowserEvent -clipboardData))))
|
||||
|
||||
(defn extract-text
|
||||
[clipboard-data]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue