Skip to content

Commit eadfa84

Browse files
committed
Select value on double click nav
1 parent 580bcbd commit eadfa84

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/portal/ui/inspector.cljs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
(:require ["anser" :as anser]
44
["react" :as react]
55
[lambdaisland.deep-diff2.diff-impl :as diff]
6+
[portal.async :as a]
67
[portal.colors :as c]
78
[portal.runtime.cson :as cson]
89
[portal.ui.api :as api]
@@ -801,7 +802,9 @@
801802
(.stopPropagation e))
802803
:on-double-click
803804
(fn [e]
804-
(state/dispatch! state state/nav context)
805+
(a/do
806+
(state/dispatch! state state/select-context context)
807+
(state/dispatch! state state/nav context))
805808
(.stopPropagation e))})
806809
{:ref ref
807810
:title (-> value meta :doc)

0 commit comments

Comments
 (0)