Skip to content

Commit e1510a8

Browse files
committed
fix text drop
1 parent 0e8dc2a commit e1510a8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/renderer/utils/data_transfer.cljs

+7-7
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@
5757
(file/read! file)))))
5858

5959
(defn add-text!
60-
[item [x y]]
61-
(.getAsString item #(rf/dispatch [::element.e/add
62-
{:type :element
63-
:tag :text
64-
:content %
65-
:attrs {:x x
66-
:y y}}])))
60+
[s [x y]]
61+
(rf/dispatch [::element.e/add
62+
{:type :element
63+
:tag :text
64+
:content s
65+
:attrs {:x x
66+
:y y}}]))
6767

6868
(defn items!
6969
"https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem"

0 commit comments

Comments
 (0)