🐛 Make from-synthetic-clipboard-event function return always a stream

Causes an execption on steam processing when it returns nil
This commit is contained in:
Andrey Antukh
2025-12-03 08:32:38 +01:00
parent 58f82da61e
commit 57fcec5afc

View File

@@ -57,10 +57,11 @@
(= (dom/get-tag-name target) "INPUT")]
;; ignore when pasting into an editable control
(when-not (or content-editable? is-input?)
(if-not (or content-editable? is-input?)
(-> event
(dom/event->browser-event)
(from-clipboard-event options))))))
(from-clipboard-event options))
(rx/empty)))))
(defn from-drop-event
"Get clipboard stream from drop event"