From 57fcec5afcb2297b649825890e7ec82f2092a1c1 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 3 Dec 2025 08:32:38 +0100 Subject: [PATCH] :bug: Make from-synthetic-clipboard-event function return always a stream Causes an execption on steam processing when it returns nil --- frontend/src/app/util/clipboard.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/util/clipboard.cljs b/frontend/src/app/util/clipboard.cljs index e70c567881..92729e5ec4 100644 --- a/frontend/src/app/util/clipboard.cljs +++ b/frontend/src/app/util/clipboard.cljs @@ -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"