Skip to content

Commit

Permalink
Allow users to close drag and drop ui when stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
djblue committed May 19, 2022
1 parent 37d2a88 commit b0ecdc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/portal/ui/drag_and_drop.cljs
Expand Up @@ -82,7 +82,8 @@
(let [state (state/use-state)
[active? set-active!] (react/useState false)]
[s/div
{:on-drag-over
{:on-click #(set-active! false)
:on-drag-over
(fn [e]
(.preventDefault e)
(set-active! true))
Expand Down

0 comments on commit b0ecdc3

Please sign in to comment.